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

Method replace

tools/python/transform/transformer.py:265–268  ·  view source on GitHub ↗
(obj_list, source, target)

Source from the content-addressed store, hash-verified

263
264 @staticmethod
265 def replace(obj_list, source, target):
266 for i in six.moves.range(len(obj_list)):
267 if obj_list[i] == source:
268 obj_list[i] = target
269
270 @staticmethod
271 def transpose_shape(shape, order):

Callers 15

safe_remove_nodeMethod · 0.95
quantize_nodesMethod · 0.95
normalize_op_nameFunction · 0.80
device_lockFunction · 0.80
bazel_target_to_binFunction · 0.80
format_model_configFunction · 0.80
list_adb_deviceMethod · 0.80
list_ssh_deviceMethod · 0.80
normalize_op_nameFunction · 0.80
run_model_for_deviceFunction · 0.80

Calls 1

rangeMethod · 0.80

Tested by

no test coverage detected