Skip to content

Commit 349ad48

Browse files
committed
Change in axlearn/common/flash_attention/layer_test.py to use "as_partition_spec" function
to convert Tuple to PartitionSpec.
1 parent a037d08 commit 349ad48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

axlearn/common/flash_attention/layer_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ def as_partition_spec(pytree: CompositeAttentionBias) -> PartitionSpec:
526526
spec = test_layer._logit_biases_spec(segment_ids) # pylint: disable=protected-access
527527
spec = as_partition_spec(spec)
528528
self.assertIsInstance(spec, PartitionSpec)
529-
self.assertEqual(spec, jax.P(test_layer.config.mha_dim_to_partition_spec["btnh"][:2]))
529+
self.assertEqual(spec, as_partition_spec(test_layer.config.mha_dim_to_partition_spec["btnh"][:2]))
530530

531531
@parameterized.product(
532532
_TEST_CONFIGS,

0 commit comments

Comments
 (0)