Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ get_qparams
Method
get_qparams
imperative/python/megengine/quantization/fake_quant.py:165–172 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
163
)
164
165
def
get_qparams(self):
166
return
LSQParams(
167
mode=self.mode,
168
dtype_meta=self.dtype,
169
scale=F.abs(self.step_size.detach()) + self.eps,
170
zero_point=self.zero_point,
171
grad_scale=self.grad_scale,
172
)
Callers
nothing calls this directly
Calls
2
LSQParams
Class · 0.85
detach
Method · 0.45
Tested by
no test coverage detected