@@ -1269,15 +1269,15 @@ int32_t GPUChainTracking::RunTPCClusterizer(bool synchronizeOutput)
12691269 if (GetProcessingSettings ().debugLevel >= 1 && (doGPU || lane < 4 )) { nnTimers[3 *lane]->Start (); }
12701270 if (clustererNNShadow.mNnInferenceInputDType == 0 ) {
12711271 if (clustererNNShadow.mNnInferenceOutputDType == 0 ) {
1272- (nnApplication.mModelClass ).inference (clustererNNShadow.mInputData_16 , iSize, clustererNNShadow.mModelProbabilities_16 );
1273- } else if (clustererNNShadow. mNnInferenceOutputDType == 1 ) {
1274- (nnApplication.mModelClass ).inference (clustererNNShadow.mInputData_16 , iSize, clustererNNShadow.mModelProbabilities_32 );
1272+ (nnApplication.mModelClass ).inference (clustererNNShadow.mInputData_32 , iSize, clustererNNShadow.mModelProbabilities_32 );
1273+ } else {
1274+ (nnApplication.mModelClass ).inference (clustererNNShadow.mInputData_32 , iSize, clustererNNShadow.mModelProbabilities_16 );
12751275 }
12761276 } else if (clustererNNShadow.mNnInferenceInputDType == 1 ) {
12771277 if (clustererNNShadow.mNnInferenceOutputDType == 0 ) {
1278- (nnApplication.mModelClass ).inference (clustererNNShadow.mInputData_32 , iSize, clustererNNShadow.mModelProbabilities_16 );
1279- } else if (clustererNNShadow. mNnInferenceOutputDType == 1 ) {
1280- (nnApplication.mModelClass ).inference (clustererNNShadow.mInputData_32 , iSize, clustererNNShadow.mModelProbabilities_32 );
1278+ (nnApplication.mModelClass ).inference (clustererNNShadow.mInputData_16 , iSize, clustererNNShadow.mModelProbabilities_32 );
1279+ } else {
1280+ (nnApplication.mModelClass ).inference (clustererNNShadow.mInputData_16 , iSize, clustererNNShadow.mModelProbabilities_16 );
12811281 }
12821282 }
12831283 if (GetProcessingSettings ().debugLevel >= 1 && (doGPU || lane < 4 )) { nnTimers[3 *lane]->Stop (); } // doGPU || lane<4 -> only for GPU or first 4 CPU lanes (to limit number of concurrent timers). At least gives some statistics for CPU time...
@@ -1289,31 +1289,31 @@ int32_t GPUChainTracking::RunTPCClusterizer(bool synchronizeOutput)
12891289 if (GetProcessingSettings ().debugLevel >= 1 && (doGPU || lane < 4 )) { nnTimers[3 *lane + 1 ]->Start (); }
12901290 if (clustererNNShadow.mNnInferenceInputDType == 0 ) {
12911291 if (clustererNNShadow.mNnInferenceOutputDType == 0 ) {
1292- (nnApplication.mModelReg1 ).inference (clustererNNShadow.mInputData_16 , iSize, clustererNNShadow.mOutputDataReg1_16 );
1293- } else if (clustererNNShadow. mNnInferenceOutputDType == 1 ) {
1294- (nnApplication.mModelReg1 ).inference (clustererNNShadow.mInputData_16 , iSize, clustererNNShadow.mOutputDataReg1_32 );
1292+ (nnApplication.mModelReg1 ).inference (clustererNNShadow.mInputData_32 , iSize, clustererNNShadow.mOutputDataReg1_32 );
1293+ } else {
1294+ (nnApplication.mModelReg1 ).inference (clustererNNShadow.mInputData_32 , iSize, clustererNNShadow.mOutputDataReg1_16 );
12951295 }
1296- } else if (clustererNNShadow. mNnInferenceInputDType == 1 ) {
1296+ } else {
12971297 if (clustererNNShadow.mNnInferenceOutputDType == 0 ) {
1298- (nnApplication.mModelReg1 ).inference (clustererNNShadow.mInputData_32 , iSize, clustererNNShadow.mOutputDataReg1_16 );
1299- } else if (clustererNNShadow. mNnInferenceOutputDType == 1 ) {
1300- (nnApplication.mModelReg1 ).inference (clustererNNShadow.mInputData_32 , iSize, clustererNNShadow.mOutputDataReg1_32 );
1298+ (nnApplication.mModelReg1 ).inference (clustererNNShadow.mInputData_16 , iSize, clustererNNShadow.mOutputDataReg1_32 );
1299+ } else {
1300+ (nnApplication.mModelReg1 ).inference (clustererNNShadow.mInputData_16 , iSize, clustererNNShadow.mOutputDataReg1_16 );
13011301 }
13021302 }
13031303 if (GetProcessingSettings ().debugLevel >= 1 && (doGPU || lane < 4 )) { nnTimers[3 *lane + 1 ]->Stop (); }
13041304 if (nnApplication.mModelClass .getNumOutputNodes ()[0 ][1 ] > 1 && nnApplication.mModelReg2 .isInitialized ()) {
13051305 if (GetProcessingSettings ().debugLevel >= 1 && (doGPU || lane < 4 )) { nnTimers[3 *lane + 2 ]->Start (); }
13061306 if (clustererNNShadow.mNnInferenceInputDType == 0 ) {
13071307 if (clustererNNShadow.mNnInferenceOutputDType == 0 ) {
1308- (nnApplication.mModelReg2 ).inference (clustererNNShadow.mInputData_16 , iSize, clustererNNShadow.mOutputDataReg2_16 );
1309- } else if (clustererNNShadow. mNnInferenceOutputDType == 1 ) {
1310- (nnApplication.mModelReg2 ).inference (clustererNNShadow.mInputData_16 , iSize, clustererNNShadow.mOutputDataReg2_32 );
1308+ (nnApplication.mModelReg2 ).inference (clustererNNShadow.mInputData_32 , iSize, clustererNNShadow.mOutputDataReg2_32 );
1309+ } else {
1310+ (nnApplication.mModelReg2 ).inference (clustererNNShadow.mInputData_32 , iSize, clustererNNShadow.mOutputDataReg2_16 );
13111311 }
13121312 } else if (clustererNNShadow.mNnInferenceInputDType == 1 ) {
13131313 if (clustererNNShadow.mNnInferenceOutputDType == 0 ) {
1314- (nnApplication.mModelReg2 ).inference (clustererNNShadow.mInputData_32 , iSize, clustererNNShadow.mOutputDataReg2_16 );
1315- } else if (clustererNNShadow. mNnInferenceOutputDType == 1 ) {
1316- (nnApplication.mModelReg2 ).inference (clustererNNShadow.mInputData_32 , iSize, clustererNNShadow.mOutputDataReg2_32 );
1314+ (nnApplication.mModelReg2 ).inference (clustererNNShadow.mInputData_16 , iSize, clustererNNShadow.mOutputDataReg2_32 );
1315+ } else {
1316+ (nnApplication.mModelReg2 ).inference (clustererNNShadow.mInputData_16 , iSize, clustererNNShadow.mOutputDataReg2_16 );
13171317 }
13181318 }
13191319 if (GetProcessingSettings ().debugLevel >= 1 && (doGPU || lane < 4 )) { nnTimers[3 *lane + 2 ]->Stop (); }
0 commit comments