(
id: number, inputs: Tensor[], inputTensorInfos: ModelTensorInfo[],
outputOpNames: string[])
| 482 | } |
| 483 | |
| 484 | runSavedModel( |
| 485 | id: number, inputs: Tensor[], inputTensorInfos: ModelTensorInfo[], |
| 486 | outputOpNames: string[]): Tensor[] { |
| 487 | const {tensorIds, newTensors} = |
| 488 | this.getMappedInputTensorIds(inputs, inputTensorInfos); |
| 489 | const outputMetadata = this.binding.runSavedModel( |
| 490 | id, tensorIds, inputTensorInfos.map(info => info.name).join(','), |
| 491 | outputOpNames.join(',')); |
| 492 | for (let i = 0; i < tensorIds.length; i++) { |
| 493 | if (newTensors.includes(i)) { |
| 494 | this.binding.deleteTensor(tensorIds[i]); |
| 495 | } |
| 496 | } |
| 497 | return outputMetadata.map(m => this.createOutputTensor(m)); |
| 498 | } |
| 499 | |
| 500 | // ------------------------------------------------------------ |
| 501 | // TensorBoard-related (tfjs-node-specific) backend kernels. |
nothing calls this directly
no test coverage detected