MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / get_op_name

Function get_op_name

quantization/clip_utils.py:166–171  ·  view source on GitHub ↗
(module, op)

Source from the content-addressed store, hash-verified

164 raise ValueError(f"Cannot find op {op_name} in module {module}")
165
166def get_op_name(module, op):
167 # get the name of the op relative to the module
168 for name, m in module.named_modules():
169 if m is op:
170 return name
171 raise ValueError(f"Cannot find op {op} in module {module}")
172
173
174def build_model_and_enc(model_path):

Callers 2

run_awqFunction · 0.85
run_clipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected