(contents: Uint8Array, channels: number)
| 364 | } |
| 365 | |
| 366 | decodePng(contents: Uint8Array, channels: number): Tensor3D { |
| 367 | const opAttrs = |
| 368 | [{name: 'channels', type: this.binding.TF_ATTR_INT, value: channels}]; |
| 369 | const inputArgs = [scalar(contents, 'string')]; |
| 370 | |
| 371 | return this.executeSingleOutput('DecodePng', opAttrs, inputArgs) as |
| 372 | Tensor<Rank.R3>; |
| 373 | } |
| 374 | |
| 375 | decodeBmp(contents: Uint8Array, channels: number): Tensor3D { |
| 376 | const opAttrs = |
no test coverage detected