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

Function init_multi_net_def

tools/python/layers_validate.py:44–50  ·  view source on GitHub ↗
(model_file)

Source from the content-addressed store, hash-verified

42
43
44def init_multi_net_def(model_file):
45 mace_check(os.path.isfile(model_file),
46 "Input graph file '" + model_file + "' does not exist!")
47 multi_net_def = mace_pb2.MultiNetDef()
48 with open(model_file, "rb") as f:
49 multi_net_def.ParseFromString(f.read())
50 return multi_net_def
51
52
53class MultiNetDefInfo:

Callers 1

convertFunction · 0.70

Calls 1

mace_checkFunction · 0.90

Tested by

no test coverage detected