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

Method scratch_size_eltwise

tools/python/micro/scratch_computer.py:188–190  ·  view source on GitHub ↗
(self, op_def)

Source from the content-addressed store, hash-verified

186 return len(input0_dims) * self.get_data_bytes(mace_pb2.DT_INT32) * 2
187
188 def scratch_size_eltwise(self, op_def):
189 input0_dims = self.get_op_input_dims(op_def, 0)
190 return len(input0_dims) * self.get_data_bytes(mace_pb2.DT_INT32) * 3
191
192 def scratch_size_of_concat(self, op_def):
193 # On a 64bit operating system, one pointer data need 8 bytes

Callers

nothing calls this directly

Calls 2

get_op_input_dimsMethod · 0.95
get_data_bytesMethod · 0.95

Tested by

no test coverage detected