(contents: Uint8Array)
| 124 | * @doc {heading: 'Operations', subheading: 'Images', namespace: 'node'} |
| 125 | */ |
| 126 | export 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 |
no test coverage detected
searching dependent graphs…