We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8d81d0 commit a98bee6Copy full SHA for a98bee6
1 file changed
check_learnable_registers.py
@@ -9,7 +9,10 @@ def main():
9
rngs = nnx.Rngs(0)
10
encoder = LTX2AudioVideoGemmaTextEncoder(rngs=rngs)
11
_, state = nnx.split(encoder)
12
- flat_state = flatten_dict(state)
+
13
+ # Convert nnx State to dict
14
+ flat_state = flatten_dict(state.to_pure_dict())
15
16
for k in flat_state.keys():
17
if "learnable_registers" in k:
18
print(k)
0 commit comments