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

Function parse_data_format

tools/python/utils/config_parser.py:123–127  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

121
122
123def parse_data_format(str):
124 str = str.upper()
125 mace_check(str in [e.name for e in DataFormat],
126 "unknown data format %s" % str)
127 return DataFormat[str]
128
129
130# must be same as MemoryType in mace.h

Callers 1

normalize_graph_configFunction · 0.85

Calls 1

mace_checkFunction · 0.90

Tested by

no test coverage detected