Skip to content

Commit 044c33c

Browse files
hsuan-lun-chiangecnal-cienet
authored andcommitted
Fix tests/unit/muon_utils_test.py::TestGetMuonWeightDimensionNumbersNNX::test_nnx_model_dispatches_to_tree_map_with_path
1 parent ee429e6 commit 044c33c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/muon_utils_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ def test_nnx_model_dispatches_to_tree_map_with_path(self):
150150
# NNX Variables are walked by jax.tree_util.tree_map_with_path, so the returned
151151
# tree replaces each Variable's value with transform_logic(path_strings).
152152
# 'scale' matches the exclusion branch → value is None.
153-
self.assertIsNone(result["scale"].get_value())
153+
self.assertIsNone(result["scale"])
154154
# 'w_standard' does not trigger any special rule → standard mdn.
155-
self.assertEqual(result["w_standard"].get_value(), mdn((0,), (-1,)))
155+
self.assertEqual(result["w_standard"], mdn((0,), (-1,)))
156156

157157
def test_nnx_verbose_path_executes_print_debug(self):
158158
"""verbose=True should also execute _print_structure_debug without raising."""

0 commit comments

Comments
 (0)