Skip to content

Commit 9e5dae8

Browse files
committed
No changes to utils.py
1 parent 237ca12 commit 9e5dae8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tests/utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import collections
44
import re
55
from typing import List, Dict, Tuple
6-
from torch_ttnn.cpp_extension.custom_device_mode import ttnn_module, enable_ttnn_device
76

87

98
class ModelTester:
@@ -131,9 +130,6 @@ def test_model_eval(self, as_ttnn=False, option=None):
131130
model = self.set_model_eval(self.model)
132131
inputs = self.set_inputs_eval(self.inputs)
133132
if as_ttnn == True:
134-
torch.utils.rename_privateuse1_backend("ttnn")
135-
ttnn_device = ttnn_module.custom_device_from_ttnn(option.device)
136-
inputs = inputs.to(ttnn_device)
137133
model = self.compile_model(model, option)
138134
outputs = self.run_model(model, inputs)
139135
results = self.get_results_eval(model, inputs, outputs)

0 commit comments

Comments
 (0)