Skip to content

Commit 8ab8324

Browse files
authored
restore te enabled status (#1194)
1 parent 88d23f1 commit 8ab8324

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/cpu/test_jit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,6 +1471,7 @@ def test_add_layernorm(self):
14711471
self.assertTrue(any(n.kind() == node for n in trace_graph.nodes()))
14721472
self.assertEqual(jit_res, ori_res, prec=5e-2)
14731473

1474+
torch._C._jit_set_texpr_fuser_enabled(pre_te_enable_status)
14741475
# stock pytorch does not support BF16 now
14751476
#input weight both bf16
14761477
# a_bf16 = a.to(torch.bfloat16)

0 commit comments

Comments
 (0)