UNPKG

@shumai/shumai

Version:

A fast, network-connected, differentiable tensor library for TypeScript (and JavaScript). Built with bun + flashlight for software engineers and researchers alike.

8 lines (7 loc) 448 B
import * as sm from '../tensor'; export declare function encodeBinary(tensor: sm.Tensor): ArrayBuffer; export declare function decodeBinary(buf: ArrayBuffer): sm.Tensor; export declare function encodeBase64(tensor: sm.Tensor): string; export declare function decodeBase64(base64String: string): sm.Tensor; export declare function encodeReadable(tensor: sm.Tensor): string; export declare function decodeReadable(readableString: string): sm.Tensor;