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

Function decodeGif

tfjs-node/src/image.ts:126–131  ·  view source on GitHub ↗
(contents: Uint8Array)

Source from the content-addressed store, hash-verified

124 * @doc {heading: 'Operations', subheading: 'Images', namespace: 'node'}
125 */
126export function decodeGif(contents: Uint8Array): Tensor4D {
127 ensureTensorflowBackend();
128 return tidy(() => {
129 return nodeBackend().decodeGif(contents).toInt();
130 });
131}
132
133/**
134 * Given the encoded bytes of an image, it returns a 3D or 4D tensor of the

Callers 1

decodeImageFunction · 0.85

Calls 5

ensureTensorflowBackendFunction · 0.90
tidyFunction · 0.90
nodeBackendFunction · 0.90
toIntMethod · 0.80
decodeGifMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…