UNPKG

base64-to-tensor

Version:

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

9 lines (8 loc) 296 B
/** * Convert the jpeg buffer to tensor with offset * * @param data the data array. * @param shape a number array with the shape of [height, width, channels]. * @returns tf.Tensor3D */ export declare const convertBuffer: (data: any, shape: any) => import("@tensorflow/tfjs-core").Tensor3D;