MCPcopy
hub / github.com/tensorflow/tfjs / decode

Method decode

tfjs-core/src/platforms/platform.ts:48–48  ·  view source on GitHub ↗

Decode the provided bytes into a string using the provided encoding.

(bytes: Uint8Array, encoding: string)

Source from the content-addressed store, hash-verified

46 encode(text: string, encoding: string): Uint8Array;
47 /** Decode the provided bytes into a string using the provided encoding. */
48 decode(bytes: Uint8Array, encoding: string): string;
49
50 setTimeoutCustom?(functionRef: Function, delay: number): void;
51

Callers 15

readImageAsJpegFunction · 0.65
pumpMethod · 0.65
decodeJpegFunction · 0.65
imageToTensorMethod · 0.65
base64ImageToTensorFunction · 0.65
decodeStringFunction · 0.65
decodeMethod · 0.65
decodeMethod · 0.65
predictFunction · 0.65
convertFunction · 0.65

Implementers 3

PlatformReactNativetfjs-react-native/src/platform_react_n
PlatformBrowsertfjs-core/src/platforms/platform_brows
PlatformNodetfjs-core/src/platforms/platform_node.

Calls

no outgoing calls