MCPcopy Create free account
hub / github.com/apple/axlearn / test_length

Method test_length

axlearn/common/utils_test.py:1969–1976  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1967 {
1968 "logical_mesh": HybridMeshShape(ici_mesh_shape=(1, -1), dcn_mesh_shape=(2, 1)),
1969 "expected": (2, 16),
1970 },
1971 # Test a case where we infer -1 in DCN mesh.
1972 {
1973 "logical_mesh": HybridMeshShape(ici_mesh_shape=(1, 16), dcn_mesh_shape=(-1, 1)),
1974 "expected": (2, 16),
1975 },
1976 # Test a case where we infer -1 in both ICI and DCN mesh.
1977 {
1978 "logical_mesh": HybridMeshShape(ici_mesh_shape=(1, -1), dcn_mesh_shape=(-1, 1)),
1979 "expected": (2, 16),

Callers

nothing calls this directly

Calls 1

HybridMeshShapeClass · 0.90

Tested by

no test coverage detected