File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
reconstruction/ai/src/main/java/org/jlab/service/ai Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 2222import org .jlab .clas .reco .ReconstructionEngine ;
2323import org .jlab .io .base .DataBank ;
2424import org .jlab .io .base .DataEvent ;
25+ import org .jlab .utils .benchmark .Benchmark ;
2526import org .jlab .utils .system .ClasUtilsFile ;
2627
2728public class DCDenoiseEngine extends ReconstructionEngine {
@@ -85,10 +86,14 @@ public boolean processDataEvent(DataEvent event) {
8586 DataBank bank = event .getBank (BANK_NAMES [i ]);
8687 try {
8788 // WARNING: Predictor is *not* thread safe.
89+ Benchmark .getInstance ().resume ("GETPRED" );
8890 Predictor <float [][], float [][]> predictor = predictors .get ();
91+ Benchmark .getInstance ().pause ("GETPRED" );
8992 for (int sector =0 ; sector <6 ; sector ++) {
9093 float [][] input = DCDenoiseEngine .read (bank , sector +1 );
94+ Benchmark .getInstance ().resume ("PREDICT" );
9195 float [][] output = predictor .predict (input );
96+ Benchmark .getInstance ().pause ("PREDICT" );
9297 //System.out.println("IN:");show(input);
9398 //System.out.println("OUT:");show(output);
9499 update (bank , threshold , output , sector );
You can’t perform that action at this time.
0 commit comments