Home
last modified time | relevance | path

Searched refs:outputs (Results 1 – 11 of 11) sorted by relevance

/test/mlts/benchmark/src/com/android/nn/benchmark/evaluators/
DMelCepLogF0.java48 protected void EvaluateSequenceAccuracy(float[][] outputs, float[][] expectedOutputs, in EvaluateSequenceAccuracy() argument
50 float melCepDistortion = calculateMelCepDistortion(outputs, expectedOutputs); in EvaluateSequenceAccuracy()
57 float logF0Error = calculateLogF0Error(outputs, expectedOutputs); in EvaluateSequenceAccuracy()
72 private static float calculateMelCepDistortion(float[][] outputs, float[][] expectedOutputs) { in calculateMelCepDistortion() argument
73 int inferenceCount = outputs.length; in calculateMelCepDistortion()
82 outputs[inferenceIndex][i] - expectedOutputs[inferenceIndex][i], 2); in calculateMelCepDistortion()
91 private static float calculateLogF0Error(float[][] outputs, float[][] expectedOutputs) { in calculateLogF0Error() argument
92 int inferenceCount = outputs.length; in calculateLogF0Error()
100 if (outputs[inferenceIndex][voicedIndex] > VOICED_THRESHOLD && in calculateLogF0Error()
102 squared_error += Math.pow(outputs[inferenceIndex][f0Index] - in calculateLogF0Error()
DPhoneErrorRate.java18 protected void EvaluateSequenceAccuracy(float[][] outputs, float[][] expectedOutputs, in EvaluateSequenceAccuracy() argument
20 float per = calculatePER(outputs, expectedOutputs); in EvaluateSequenceAccuracy()
34 private static float calculatePER(float[][] outputs, float[][] expectedOutputs) { in calculatePER() argument
35 int inferenceCount = outputs.length; in calculatePER()
39 outputPhones[i] = SequenceUtils.indexOfLargest(outputs[i]); in calculatePER()
DBaseSequenceEvaluator.java39 float[][] outputs = new float[sequenceLength][outputSize]; in EvaluateAccuracy() local
48 outputs[i], 0, outputSize); in EvaluateAccuracy() local
53 outputs[i], 0, outputSize); in EvaluateAccuracy() local
72 EvaluateSequenceAccuracy(outputs, expectedOutputs, outValidationErrors); in EvaluateAccuracy()
79 protected abstract void EvaluateSequenceAccuracy(float[][] outputs, float[][] expectedOutputs, in EvaluateSequenceAccuracy() argument
/test/mlts/benchmark/jni/
Drun_tflite.cpp125 outputs.clear(); in init()
128 mTfliteInterpreter->node_and_registration(node)->first.outputs; in init()
129 outputs.insert(outputs.end(), node_outputs->data, in init()
132 mTfliteInterpreter->SetOutputs(outputs); in init()
179 int output = mTfliteInterpreter->outputs()[output_index]; in saveInferenceOutput()
188 int output = mTfliteInterpreter->outputs()[output_index]; in getOutputError()
312 size_t outputsCount = mTfliteInterpreter->outputs().size(); in benchmark()
320 if (outputsCount != data.outputs.size()) { in benchmark()
323 data.outputs.size(), outputsCount); in benchmark()
327 getOutputError(data.outputs[j].ptr, data.outputs[j].size, &result, j); in benchmark()
[all …]
Dbenchmark_jni.cpp214 auto& outputs = seq.back().outputs; in InferenceInOutSequenceList() local
215 outputs.reserve(expectedOutputsLength); in InferenceInOutSequenceList()
232 outputs.push_back({ expectedOutput_data, expectedOutput_len}); in InferenceInOutSequenceList()
260 if (expectedOutputsLength != mData[seq_index][i].outputs.size()) { in ~InferenceInOutSequenceList()
271 … expectedOutput, reinterpret_cast<jbyte*>(mData[seq_index][i].outputs[j].ptr), in ~InferenceInOutSequenceList()
Drun_tflite.h39 std::vector<InferenceOutput> outputs; member
134 std::vector<int> outputs; variable
Drandom_graph_test_jni.cpp265 std::vector<test_helper::TestBuffer> outputs; in runRandomModel() local
266 createRequest(*testModel, &execution, &outputs); in runRandomModel()
/test/mlts/benchmark/src/com/android/nn/benchmark/core/
DInferenceInOutSequence.java85 byte[][] outputs = new byte[mOutputAssetsNames.length][]; in readAssets()
89 outputs[i] = IOUtils.readAsset(assetManager, mOutputAssetsNames[i], mDataBytesSize); in readAssets()
90 if (outputs[i].length % sequenceLength != 0) { in readAssets()
93 outputs[i].length + " is not a multiple of sequence length: " + in readAssets()
107 int outputSizeBytes = outputs[j].length / sequenceLength; in readAssets()
108 outz[j] = Arrays.copyOfRange(outputs[j], outputSizeBytes * i, in readAssets()
DTestModelsListLoader.java101 String[] outputs = null; in parseJSONModelsList() local
104 outputs = new String[]{output}; in parseJSONModelsList()
108 outputs = new String[outputArray.length()]; in parseJSONModelsList()
110 outputs[k] = outputArray.getString(k); in parseJSONModelsList()
115 inputOutputs[j] = new InferenceInOutSequence.FromAssets(input, outputs, in parseJSONModelsList()
/test/vti/test_serving/gae/webapp/src/scheduler/
Dschedule_worker.py259 outputs = []
264 logging.info("\n".join(outputs))
265 outputs = []
267 outputs.append(line)
268 logging.info("\n".join(outputs))
/test/mlts/models/
DREADME.txt141 TODO(pszczepaniak): Provide at least 5 inputs outputs for each model