summaryrefslogtreecommitdiff
path: root/tools/tflitefile_tool/operator_printer.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tflitefile_tool/operator_printer.py')
-rwxr-xr-x[-rw-r--r--]tools/tflitefile_tool/operator_printer.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/tools/tflitefile_tool/operator_printer.py b/tools/tflitefile_tool/operator_printer.py
index 9b6f97d24..e7c553394 100644..100755
--- a/tools/tflitefile_tool/operator_printer.py
+++ b/tools/tflitefile_tool/operator_printer.py
@@ -17,7 +17,6 @@
from operator_wrapping import Operator
from tensor_printer import TensorPrinter
from option_printer import OptionPrinter
-from perf_predictor import PerfPredictor
def GetStrTensorIndex(tensors):
@@ -35,25 +34,13 @@ class OperatorPrinter(object):
self.verbose = verbose
self.operator = operator
- def PrintInfo(self, perf_predictor=None):
+ def PrintInfo(self):
if (self.verbose < 1):
return
op_str = "Operator {0}: {1}".format(self.operator.operator_idx,
self.operator.opcode_str)
- if self.verbose == 2:
- # total instruction num
- instrs = "{:,}".format(self.operator.operation.TotalInstrNum()
- ) if self.operator.operation.can_compute else "???"
-
- # total operation cycles
- cycles = "{:,}".format(
- (perf_predictor.PredictCycles(self.operator.operation))
- ) if self.operator.operation.can_compute and perf_predictor != None else "???"
-
- op_str = op_str + "(instrs: {0}, cycls: {1})".format(instrs, cycles)
-
print(op_str)
print("\tFused Activation: " + self.operator.fused_activation)
self.PrintTensors()