Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ModelTC/LightX2V
/ __init__
Method
__init__
tools/convert/quant/quant.py:27–29 ·
view source on GitHub ↗
(self, weight)
Source
from the content-addressed store, hash-verified
25
raise
ValueError(f
"Only 2D tensors supported. Got {weight.dim()}D tensor"
)
26
if
torch.isnan(weight).any():
27
raise
ValueError(
"Tensor contains NaN values"
)
28
29
self.weight_quant_func = None
30
self.extra = {}
31
32
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected