MCPcopy Index your code
hub / github.com/tensorflow/tfjs / encode

Method encode

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

* Encode the provided string into an array of bytes using the provided * encoding.

(text: string, encoding: string)

Source from the content-addressed store, hash-verified

44 * encoding.
45 */
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

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