Skip to content

Commit

Permalink
Update interpreter.dart
Browse files Browse the repository at this point in the history
Fix variable name to reflect microseconds for _lastNativeInferenceDurationMicroSeconds
  • Loading branch information
mmmahdiii authored Nov 30, 2024
1 parent 9b3a779 commit 66aa6c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/interpreter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ class Interpreter {
inputTensors.elementAt(i).setTo(inputs[i]);
}

var inferenceStartNanos = DateTime.now().microsecondsSinceEpoch;
var inferenceStartMicros = DateTime.now().microsecondsSinceEpoch;
invoke();
_lastNativeInferenceDurationMicroSeconds =
DateTime.now().microsecondsSinceEpoch - inferenceStartNanos;
DateTime.now().microsecondsSinceEpoch - inferenceStartMicros;
}

/// Gets all input tensors associated with the model.
Expand Down

0 comments on commit 66aa6c6

Please sign in to comment.