jpterry commited on
Commit
81ed768
·
1 Parent(s): 08fe915

trying to set number of onnx threads

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -47,6 +47,7 @@ def load_model(model: str, activation: bool=True):
47
  print(model)
48
 
49
  ort_session = ort.InferenceSession(model_path + '%s.onnx' % (model))
 
50
 
51
  return ort_session
52
 
 
47
  print(model)
48
 
49
  ort_session = ort.InferenceSession(model_path + '%s.onnx' % (model))
50
+ ort_session.intra_op_num_threads = 1
51
 
52
  return ort_session
53