Home
last modified time | relevance | path

Searched refs:expectedOutputs (Results 1 – 5 of 5) 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
82 outputs[inferenceIndex][i] - expectedOutputs[inferenceIndex][i], 2); in calculateMelCepDistortion()
91 private static float calculateLogF0Error(float[][] outputs, float[][] expectedOutputs) { in calculateLogF0Error() argument
101 expectedOutputs[inferenceIndex][voicedIndex] > VOICED_THRESHOLD) { in calculateLogF0Error()
103 expectedOutputs[inferenceIndex][f0Index], 2); in calculateLogF0Error()
DBaseSequenceEvaluator.java40 float[][] expectedOutputs = new float[sequenceLength][outputSize]; in EvaluateAccuracy() local
63 expectedOutputs[i], 0, outputSize); in EvaluateAccuracy() local
68 expectedOutputs[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
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
40 expectedOutputPhones[i] = SequenceUtils.indexOfLargest(expectedOutputs[i]); in calculatePER()
/test/mlts/benchmark/src/com/android/nn/benchmark/core/
DInferenceInOut.java37 public InferenceInOut(byte[] input, byte[][] expectedOutputs, int expectedClass) { in InferenceInOut() argument
39 mExpectedOutputs = expectedOutputs; in InferenceInOut()
43 public InferenceInOut(InputCreatorInterface inputCreator, byte[][] expectedOutputs, in InferenceInOut() argument
46 mExpectedOutputs = expectedOutputs; in InferenceInOut()
/test/mlts/benchmark/jni/
Dbenchmark_jni.cpp187 jobjectArray expectedOutputs = static_cast<jobjectArray>( in InferenceInOutSequenceList() local
189 mOutputArrays.push_back(expectedOutputs); in InferenceInOutSequenceList()
193 if (expectedOutputs != nullptr) { in InferenceInOutSequenceList()
194 jsize expectedOutputsLength = mEnv->GetArrayLength(expectedOutputs); in InferenceInOutSequenceList()
200 … static_cast<jbyteArray>(mEnv->GetObjectArrayElement(expectedOutputs, j)); in InferenceInOutSequenceList()
238 jobjectArray expectedOutputs = mOutputArrays[arrayIndex]; in ~InferenceInOutSequenceList() local
239 if (expectedOutputs != nullptr) { in ~InferenceInOutSequenceList()
240 jsize expectedOutputsLength = mEnv->GetArrayLength(expectedOutputs); in ~InferenceInOutSequenceList()
250 …yteArray expectedOutput = static_cast<jbyteArray>(mEnv->GetObjectArrayElement(expectedOutputs, j)); in ~InferenceInOutSequenceList()