Skip to content

Commit

Permalink
Make XLA tests export new IR compatible (#8354)
Browse files Browse the repository at this point in the history
  • Loading branch information
tugsbayasgalan authored Nov 5, 2024
1 parent ca0a244 commit 81c4caa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/stablehlo/test_export_fx_passes.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ def forward(self, x, dim, weight, bias, eps):
after_decomp_out = native_layer_norm_impl(*args)
self.assertTrue(
torch.allclose(before_decomp_out, after_decomp_out, atol=1e-6))
ep = export(m, args, dynamic_shapes=dynamic_shapes)
ep_training = export(m, args, dynamic_shapes=dynamic_shapes)
ep = ep_training.run_decompositions({})
decompose_dynamic_native_layer_norm(ep.graph_module)
ep.graph_module.recompile()
self.assertFalse('aten.native_layer_norm' in ep.graph_module.code)
Expand Down

0 comments on commit 81c4caa

Please sign in to comment.