Skip to content

Commit 974411d

Browse files
authored
Import neuron package for Inferentia (#2157)
1 parent 3b7168c commit 974411d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/apis/batch/inferentia/handler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def __init__(self, config, job_spec):
4646
self.model.load_state_dict(torch.load(model_name))
4747
self.model.eval()
4848
elif config["device"] == "inf":
49+
import torch_neuron
4950

5051
self.model = torch.jit.load(model_name)
5152
else:

0 commit comments

Comments
 (0)