MCPcopy
hub / github.com/tensorflow/tfjs / constructor

Method constructor

tfjs-tflite/src/tflite_model_test.ts:35–43  ·  view source on GitHub ↗
(
      modelPath: string, options: TFLiteWebModelRunnerOptions,
      firstOutputtype: TFLiteDataType = 'int32')

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 2

getTensorInfosMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected