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

Method run

tools/python/transform/shape_inference.py:76–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74 self._output_shape_cache[tensor.name] = list(tensor.dims)
75
76 def run(self):
77 for op in self._net.op:
78 mace_check(op.type in self._op_shape_inference,
79 "Mace does not support caffe op type %s yet"
80 % op.type)
81 self._op_shape_inference[op.type](op)
82
83 def add_output_shape(self, op, shapes):
84 mace_check(len(op.output) == len(shapes),

Callers 1

runMethod · 0.95

Calls 1

mace_checkFunction · 0.90

Tested by

no test coverage detected