UNPKG

base64-to-tensor

Version:

a pure js convert a base64 to a tensor object for node

8 lines (7 loc) 182 B
/** * Convert base64 to TypedArray. * * @param base64 a valid base64 encoded string. * @returns Uint8Array */ export declare const toTypedArray: (base64: string) => Uint8Array;