(
modelPath: string, options: TFLiteWebModelRunnerOptions,
firstOutputtype: TFLiteDataType = 'int32')
| 33 | singleOutput = false; |
| 34 | |
| 35 | constructor( |
| 36 | modelPath: string, options: TFLiteWebModelRunnerOptions, |
| 37 | firstOutputtype: TFLiteDataType = 'int32') { |
| 38 | this.inputTensors = this.getTensorInfos(); |
| 39 | this.outputTensors = this.getTensorInfos(firstOutputtype); |
| 40 | |
| 41 | this.mockInferResults.push(`ModelPath=${modelPath}`); |
| 42 | this.mockInferResults.push(`numThreads=${options.numThreads}`); |
| 43 | } |
| 44 | |
| 45 | getInputs(): TFLiteWebModelRunnerTensorInfo[] { |
| 46 | return this.singleInput ? [this.inputTensors[0]] : this.inputTensors; |
nothing calls this directly
no test coverage detected