Searched refs:expectedOutputs (Results 1 – 5 of 5) sorted by relevance
/test/mlts/benchmark/src/com/android/nn/benchmark/evaluators/ |
D | MelCepLogF0.java | 48 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()
|
D | PhoneErrorRate.java | 18 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()
|
D | BaseSequenceEvaluator.java | 40 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
|
/test/mlts/benchmark/src/com/android/nn/benchmark/core/ |
D | InferenceInOut.java | 37 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/ |
D | benchmark_jni.cpp | 206 jobjectArray expectedOutputs = static_cast<jobjectArray>( in InferenceInOutSequenceList() local 208 mOutputArrays.push_back(expectedOutputs); in InferenceInOutSequenceList() 212 if (expectedOutputs != nullptr) { in InferenceInOutSequenceList() 213 jsize expectedOutputsLength = mEnv->GetArrayLength(expectedOutputs); in InferenceInOutSequenceList() 219 … static_cast<jbyteArray>(mEnv->GetObjectArrayElement(expectedOutputs, j)); in InferenceInOutSequenceList() 257 jobjectArray expectedOutputs = mOutputArrays[arrayIndex]; in ~InferenceInOutSequenceList() local 258 if (expectedOutputs != nullptr) { in ~InferenceInOutSequenceList() 259 jsize expectedOutputsLength = mEnv->GetArrayLength(expectedOutputs); in ~InferenceInOutSequenceList() 269 …yteArray expectedOutput = static_cast<jbyteArray>(mEnv->GetObjectArrayElement(expectedOutputs, j)); in ~InferenceInOutSequenceList()
|