Skip to content

Commit 18a05ef

Browse files
apaszkeGoogle-ML-Automation
authored andcommitted
[Pallas:SC] Add a missing output initialization write
PiperOrigin-RevId: 833359821
1 parent 37291bc commit 18a05ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/pallas/tpu_sparsecore_pallas_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,13 @@ def kernel(x_ref, o_ref):
287287
np.testing.assert_array_equal(kernel(x), x.sum(axis=0))
288288

289289
def test_get_multi_index(self):
290-
self.skipTest("TODO(apaszke): This test may be flaky, at least for TPU v6.")
291290
self.skip_if_tc_tiling()
292291

293292
@self.vector_subcore_kernel(
294293
out_shape=jax.ShapeDtypeStruct(shape=(8,), dtype=jnp.int32)
295294
)
296295
def kernel(x_ref, o_ref):
296+
o_ref[...] = jnp.zeros_like(o_ref)
297297
for i, j in itertools.product(*map(range, x_ref.shape[:-1])):
298298
o_ref[...] += x_ref.at[i][j]
299299

0 commit comments

Comments
 (0)