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

Function generate_tensor_map

tools/python/encrypt.py:48–54  ·  view source on GitHub ↗
(tensors, model_names_set)

Source from the content-addressed store, hash-verified

46
47
48def generate_tensor_map(tensors, model_names_set):
49 tensor_map = {}
50 for t in tensors:
51 if t.name not in tensor_map:
52 tensor_map[t.name] = \
53 generate_obfuscated_name("tensor", t.name, model_names_set)
54 return tensor_map
55
56
57def generate_in_out_map(ops, tensor_map, model_names_set):

Callers 1

obfuscate_nameFunction · 0.85

Calls 1

generate_obfuscated_nameFunction · 0.85

Tested by

no test coverage detected