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

Method error

tools/python/utils/util.py:68–71  ·  view source on GitHub ↗
(message, level=2)

Source from the content-addressed store, hash-verified

66
67 @staticmethod
68 def error(message, level=2):
69 print(CMDColors.RED + 'ERROR: ' + get_frame_info(level) + str(message)
70 + CMDColors.ENDC)
71 exit(1)
72
73
74def mace_check(condition, message):

Callers 7

compare_outputFunction · 0.45
validate_tf_modelFunction · 0.45
validate_caffe_modelFunction · 0.45
validate_onnx_modelFunction · 0.45
validate_megengine_modelFunction · 0.45
validate_keras_modelFunction · 0.45
mace_checkFunction · 0.45

Calls 1

get_frame_infoFunction · 0.70

Tested by

no test coverage detected