Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGVLab/EfficientQAT
/ trainable_parameters
Function
trainable_parameters
quantize/utils.py:54–59 ·
view source on GitHub ↗
(model)
Source
from the content-addressed store, hash-verified
52
53
54
def
trainable_parameters(model):
55
params = []
56
for
n, m in model.named_parameters():
57
if
m.requires_grad:
58
params.append(m)
59
return
iter(params)
60
61
def
trainable_parameters_num(model):
62
params = []
Callers
1
block_ap
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected