(contents: Uint8Array, channels: number)
| 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')]; |
no test coverage detected