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

Method decodeBmp

tfjs-node/src/nodejs_kernel_backend.ts:375–381  ·  view source on GitHub ↗
(contents: Uint8Array, channels: number)

Source from the content-addressed store, hash-verified

373 }
374
375 decodeBmp(contents: Uint8Array, channels: number): Tensor3D {
376 const opAttrs =
377 [{name: 'channels', type: this.binding.TF_ATTR_INT, value: channels}];
378 const inputArgs = [scalar(contents, 'string')];
379 return this.executeSingleOutput('DecodeBmp', opAttrs, inputArgs) as
380 Tensor<Rank.R3>;
381 }
382
383 decodeGif(contents: Uint8Array): Tensor4D {
384 const inputArgs = [scalar(contents, 'string')];

Callers 2

image_test.tsFile · 0.80
decodeBmpFunction · 0.80

Calls 2

executeSingleOutputMethod · 0.95
scalarFunction · 0.90

Tested by

no test coverage detected