fixed bugs in inference code

This commit is contained in:
Lingxi Xie
2023-03-02 22:37:27 +08:00
parent 0387b09086
commit cf3547114d
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ options.intra_op_num_threads = 1
cuda_provider_options = {'arena_extend_strategy':'kSameAsRequested',}
# Initialize onnxruntime session for Pangu-Weather Models
ort_session_24 = ort.InferenceSession('pangu_weather_24.onnx', sess_options=options, provider=['CPUExecutionProvider'])
ort_session_24 = ort.InferenceSession('pangu_weather_24.onnx', sess_options=options, providers=['CPUExecutionProvider'])
# Load the upper-air numpy arrays
input = np.load(os.path.join(input_data_dir, 'input_upper.npy')).astype(np.float32)