MCPcopy Create free account
hub / github.com/XiaoMi/mace / convert_ops

Method convert_ops

tools/python/transform/tensorflow_converter.py:436–443  ·  view source on GitHub ↗
(self, sess)

Source from the content-addressed store, hash-verified

434 self._output_shape[tensors[i]] = tensor_shapes[i]
435
436 def convert_ops(self, sess):
437 for tf_op in self._tf_graph.get_operations():
438 mace_check(tf_op.type in self._op_converters,
439 "Mace does not support tensorflow op type %s yet"
440 % tf_op.type)
441 self._op_converters[tf_op.type](tf_op)
442
443 self.convert_tensors()
444
445 def convert_tensors(self):
446 for tf_op in self._tf_graph.get_operations():

Callers 1

runMethod · 0.95

Calls 2

convert_tensorsMethod · 0.95
mace_checkFunction · 0.90

Tested by

no test coverage detected