microsoft / onnxruntime

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
https://onnxruntime.ai
MIT License
14.18k stars 2.86k forks source link

Segmentation fault : onnxruntime infer all outputs include all nodes with python API #10044

Open wangxudong-cq opened 2 years ago

wangxudong-cq commented 2 years ago

Describe the bug Segmentation fault (core dumped)

System information

To Reproduce model:https://github.com/onnx/models/blob/master/vision/classification/inception_and_googlenet/inception_v1/model/inception-v1-9.onnx

test.py

  import onnx
  import onnx.numpy_helper
  import onnxruntime as ort
  from collections import OrderedDict

  def readArrayFromPB(file):
      tensor = onnx.TensorProto()
      with open(file, "rb") as f:
          tensor.ParseFromString(f.read())
      array = onnx.numpy_helper.to_array(tensor)
      return array

  def writeArrayToPB(file, array):
      tensor = onnx.numpy_helper.from_array(array)
      with open(file, "wb") as f:
          f.write(tensor.SerializeToString())

  if __name__=="__main__":
      model = onnx.load_model("/home/wang/wangxudong/RPP_iTest/netmodel/save_model_all_nodes/inception-v1-9/inception-v1-9.onnx")

      OutputNameLists = []
      for i in range(len(model.graph.node)):
          OutputNameLists.extend(model.graph.node[i].output)    

      OutputNameList = []
      for i in range(len(model.graph.output)):
          OutputNameList.append(model.graph.output[i].name)

      all_outs = list(set(OutputNameLists) - set(OutputNameList))
      all_outs = [onnx.ValueInfoProto(name=x) for x in all_outs]
      print("all_outs:{0}".format(all_outs))

      model.graph.output.extend(all_outs)

      ort_session = ort.InferenceSession(model.SerializeToString())

      ort_ins = {}
      ort_ins.update({"data_0":readArrayFromPB("/home/wang/wangxudong/RPP_iTest/netmodel/save_model_all_nodes/inception-v1-9/test_data_set_0/input_0.pb")})

      # ort_outnames = ["prob_1"]
      ort_outnames = [x.name for x in ort_session.get_outputs()]
      print("ort_outnames:{0}".format(ort_outnames))

      ort_array = ort_session.run(ort_outnames, ort_ins)

      ort_outs = OrderedDict(zip(ort_outnames, ort_array))
      ort_outshapes = {}
      for k,v in ort_outs.items():
          writeArrayToPB("/home/wang/wangxudong/RPP_iTest/netmodel/save_model_all_outs/inception-v1-9/prob_1.pb",v)
          ort_outshapes.update({k:v.shape})
      print(ort_outshapes)

Expected behavior onnxruntime infer success

Screenshots (ubuntu) wang@VM-1-159-ubuntu:~/wangxudong/RPP_iTest/netmodel$ python3 test.py all_outs:[name: "loss3_classifier_1" , name: "conv1_7x7_s2_1" , name: "inception_4b_5x5_reduce_2" , name: "inception_4b_5x5_1" , name: "inception_4c_1x1_2" , name: "inception_4c_3x3_reduce_2" , name: "pool3_3x3_s2_1" , name: "inception_5b_pool_proj_2" , name: "inception_5a_5x5_2" , name: "inception_4c_5x5_2" , name: "inception_3a_pool_1" , name: "pool1_norm1_1" , name: "inception_4c_3x3_1" , name: "inception_3a_3x3_reduce_2" , name: "inception_4d_pool_proj_2" , name: "inception_4e_pool_1" , name: "_pool5/7x7_s1_mask_1" , name: "inception_4b_3x3_reduce_2" , name: "pool5_7x7_s1_1" , name: "inception_4a_5x5_1" , name: "inception_3a_5x5_1" , name: "inception_4d_5x5_reduce_1" , name: "inception_5b_5x5_2" , name: "inception_4d_5x5_reduce_2" , name: "inception_3b_5x5_reduce_2" , name: "inception_4b_1x1_2" , name: "inception_4a_1x1_1" , name: "inception_4b_3x3_1" , name: "inception_3a_1x1_1" , name: "inception_4d_3x3_1" , name: "pool1_3x3_s2_1" , name: "inception_5b_output_1" , name: "inception_5a_5x5_reduce_2" , name: "inception_4d_1x1_1" , name: "inception_4e_5x5_1" , name: "conv2_3x3_1" , name: "inception_4e_1x1_2" , name: "inception_4d_3x3_reduce_1" , name: "inception_3b_5x5_2" , name: "inception_4d_3x3_reduce_2" , name: "inception_4c_pool_1" , name: "inception_5b_1x1_1" , name: "inception_5a_3x3_reduce_2" , name: "inception_5a_output_1" , name: "inception_4a_3x3_2" , name: "inception_5a_pool_proj_1" , name: "inception_3a_5x5_reduce_2" , name: "inception_3a_pool_proj_1" , name: "inception_5a_pool_1" , name: "inception_4e_pool_proj_1" , name: "conv2_3x3_reduce_1" , name: "inception_4c_pool_proj_1" , name: "inception_4d_3x3_2" , name: "inception_3b_3x3_reduce_2" , name: "inception_4a_5x5_reduce_1" , name: "inception_4a_3x3_1" , name: "inception_4c_output_1" , name: "pool2_3x3_s2_1" , name: "inception_4e_3x3_1" , name: "inception_4e_pool_proj_2" , name: "conv2_3x3_2" , name: "inception_3b_pool_1" , name: "conv2_norm2_1" , name: "inception_5b_3x3_reduce_2" , name: "inception_4a_3x3_reduce_1" , name: "inception_5a_pool_proj_2" , name: "conv1_7x7_s2_2" , name: "inception_3a_pool_proj_2" , name: "inception_3a_3x3_1" , name: "inception_5b_5x5_reduce_2" , name: "inception_4b_5x5_2" , name: "inception_4e_5x5_reduce_1" , name: "inception_4b_pool_proj_1" , name: "inception_4c_3x3_reduce_1" , name: "inception_5a_5x5_1" , name: "inception_4a_pool_proj_1" , name: "inception_4a_5x5_reduce_2" , name: "inception_4a_1x1_2" , name: "inception_5a_3x3_reduce_1" , name: "inception_5b_1x1_2" , name: "inception_4c_5x5_reduce_2" , name: "inception_4c_3x3_2" , name: "inception_4e_3x3_reduce_2" , name: "inception_5b_pool_proj_1" , name: "inception_3a_5x5_reduce_1" , name: "inception_3a_5x5_2" , name: "inception_3b_pool_proj_1" , name: "inception_3b_pool_proj_2" , name: "OC2_DUMMY_0" , name: "inception_4e_output_1" , name: "inception_4b_pool_proj_2" , name: "inception_3b_output_1" , name: "inception_4b_3x3_2" , name: "inception_4a_3x3_reduce_2" , name: "inception_4a_5x5_2" , name: "inception_4e_1x1_1" , name: "inception_3b_5x5_reduce_1" , name: "inception_4e_5x5_reduce_2" , name: "inception_3b_5x5_1" , name: "inception_5b_pool_1" , name: "inception_3a_3x3_2" , name: "inception_3a_3x3_reduce_1" , name: "inception_5b_5x5_reduce_1" , name: "inception_4d_5x5_1" , name: "inception_5b_3x3_1" , name: "inception_4d_pool_proj_1" , name: "inception_4b_1x1_1" , name: "inception_3a_output_1" , name: "inception_4b_3x3_reduce_1" , name: "inception_3b_3x3_2" , name: "inception_5a_1x1_1" , name: "inception_4d_1x1_2" , name: "inception_3b_1x1_2" , name: "inception_4c_5x5_1" , name: "inception_5b_3x3_reduce_1" , name: "inception_3b_3x3_reduce_1" , name: "inception_4b_output_1" , name: "inception_5a_3x3_2" , name: "inception_4d_pool_1" , name: "inception_4d_output_1" , name: "inception_4e_3x3_reduce_1" , name: "OC2_DUMMY_2" , name: "inception_4a_pool_1" , name: "inception_4c_5x5_reduce_1" , name: "inception_4a_output_1" , name: "inception_4c_1x1_1" , name: "pool4_3x3_s2_1" , name: "inception_3a_1x1_2" , name: "inception_4b_5x5_reduce_1" , name: "inception_4d_5x5_2" , name: "inception_4a_pool_proj_2" , name: "conv2_3x3_reduce_2" , name: "inception_5a_1x1_2" , name: "inception_5b_3x3_2" , name: "inception_3b_1x1_1" , name: "inception_5a_5x5_reduce_1" , name: "pool5_7x7_s1_2" , name: "inception_5a_3x3_1" , name: "inception_4e_5x5_2" , name: "inception_3b_3x3_1" , name: "inception_5b_5x5_1" , name: "inception_4c_pool_proj_2" , name: "inception_4b_pool_1" , name: "inception_4e_3x3_2" ] ort_outnames:['prob_1', 'loss3_classifier_1', 'conv1_7x7_s2_1', 'inception_4b_5x5_reduce_2', 'inception_4b_5x5_1', 'inception_4c_1x1_2', 'inception_4c_3x3_reduce_2', 'pool3_3x3_s2_1', 'inception_5b_pool_proj_2', 'inception_5a_5x5_2', 'inception_4c_5x5_2', 'inception_3a_pool_1', 'pool1_norm1_1', 'inception_4c_3x3_1', 'inception_3a_3x3_reduce_2', 'inception_4d_pool_proj_2', 'inception_4e_pool_1', '_pool5/7x7_s1_mask_1', 'inception_4b_3x3_reduce_2', 'pool5_7x7_s1_1', 'inception_4a_5x5_1', 'inception_3a_5x5_1', 'inception_4d_5x5_reduce_1', 'inception_5b_5x5_2', 'inception_4d_5x5_reduce_2', 'inception_3b_5x5_reduce_2', 'inception_4b_1x1_2', 'inception_4a_1x1_1', 'inception_4b_3x3_1', 'inception_3a_1x1_1', 'inception_4d_3x3_1', 'pool1_3x3_s2_1', 'inception_5b_output_1', 'inception_5a_5x5_reduce_2', 'inception_4d_1x1_1', 'inception_4e_5x5_1', 'conv2_3x3_1', 'inception_4e_1x1_2', 'inception_4d_3x3_reduce_1', 'inception_3b_5x5_2', 'inception_4d_3x3_reduce_2', 'inception_4c_pool_1', 'inception_5b_1x1_1', 'inception_5a_3x3_reduce_2', 'inception_5a_output_1', 'inception_4a_3x3_2', 'inception_5a_pool_proj_1', 'inception_3a_5x5_reduce_2', 'inception_3a_pool_proj_1', 'inception_5a_pool_1', 'inception_4e_pool_proj_1', 'conv2_3x3_reduce_1', 'inception_4c_pool_proj_1', 'inception_4d_3x3_2', 'inception_3b_3x3_reduce_2', 'inception_4a_5x5_reduce_1', 'inception_4a_3x3_1', 'inception_4c_output_1', 'pool2_3x3_s2_1', 'inception_4e_3x3_1', 'inception_4e_pool_proj_2', 'conv2_3x3_2', 'inception_3b_pool_1', 'conv2_norm2_1', 'inception_5b_3x3_reduce_2', 'inception_4a_3x3_reduce_1', 'inception_5a_pool_proj_2', 'conv1_7x7_s2_2', 'inception_3a_pool_proj_2', 'inception_3a_3x3_1', 'inception_5b_5x5_reduce_2', 'inception_4b_5x5_2', 'inception_4e_5x5_reduce_1', 'inception_4b_pool_proj_1', 'inception_4c_3x3_reduce_1', 'inception_5a_5x5_1', 'inception_4a_pool_proj_1', 'inception_4a_5x5_reduce_2', 'inception_4a_1x1_2', 'inception_5a_3x3_reduce_1', 'inception_5b_1x1_2', 'inception_4c_5x5_reduce_2', 'inception_4c_3x3_2', 'inception_4e_3x3_reduce_2', 'inception_5b_pool_proj_1', 'inception_3a_5x5_reduce_1', 'inception_3a_5x5_2', 'inception_3b_pool_proj_1', 'inception_3b_pool_proj_2', 'OC2_DUMMY_0', 'inception_4e_output_1', 'inception_4b_pool_proj_2', 'inception_3b_output_1', 'inception_4b_3x3_2', 'inception_4a_3x3_reduce_2', 'inception_4a_5x5_2', 'inception_4e_1x1_1', 'inception_3b_5x5_reduce_1', 'inception_4e_5x5_reduce_2', 'inception_3b_5x5_1', 'inception_5b_pool_1', 'inception_3a_3x3_2', 'inception_3a_3x3_reduce_1', 'inception_5b_5x5_reduce_1', 'inception_4d_5x5_1', 'inception_5b_3x3_1', 'inception_4d_pool_proj_1', 'inception_4b_1x1_1', 'inception_3a_output_1', 'inception_4b_3x3_reduce_1', 'inception_3b_3x3_2', 'inception_5a_1x1_1', 'inception_4d_1x1_2', 'inception_3b_1x1_2', 'inception_4c_5x5_1', 'inception_5b_3x3_reduce_1', 'inception_3b_3x3_reduce_1', 'inception_4b_output_1', 'inception_5a_3x3_2', 'inception_4d_pool_1', 'inception_4d_output_1', 'inception_4e_3x3_reduce_1', 'OC2_DUMMY_2', 'inception_4a_pool_1', 'inception_4c_5x5_reduce_1', 'inception_4a_output_1', 'inception_4c_1x1_1', 'pool4_3x3_s2_1', 'inception_3a_1x1_2', 'inception_4b_5x5_reduce_1', 'inception_4d_5x5_2', 'inception_4a_pool_proj_2', 'conv2_3x3_reduce_2', 'inception_5a_1x1_2', 'inception_5b_3x3_2', 'inception_3b_1x1_1', 'inception_5a_5x5_reduce_1', 'pool5_7x7_s1_2', 'inception_5a_3x3_1', 'inception_4e_5x5_2', 'inception_3b_3x3_1', 'inception_5b_5x5_1', 'inception_4c_pool_proj_2', 'inception_4b_pool_1', 'inception_4e_3x3_2'] Segmentation fault (core dumped)

ytaous commented 2 years ago

can u pls try a later version of onnxruntime? ref - https://github.com/microsoft/onnxruntime/issues/9905

wangxudong-cq commented 2 years ago

can u pls try a later version of onnxruntime? ref - #9905

Thanks! This issue was varified in Version: 1.10.0

ytaous commented 2 years ago

so it's still reproducible ?

wangxudong-cq commented 2 years ago

so it's still reproducible ?

This is the new test result: https://github.com/onnx/models/blob/master/vision/classification/inception_and_googlenet/inception_v1/model/inception-v1-9.onnx model was inferred successfully https://github.com/onnx/models/blob/master/vision/classification/vgg/model/vgg16-bn-7.onnx model was inferred failed https://github.com/onnx/models/blob/master/vision/classification/vgg/model/vgg19-bn-7.onnx model was inferred failed

wangxudong-cq commented 2 years ago

Following error log for https://github.com/onnx/models/blob/master/vision/classification/vgg/model/vgg16-bn-7.onnx:

2021-12-16 11:13:34.405984397 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.411099439 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.414788828 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.418472939 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.421974257 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.425492682 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.429099924 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.432581090 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.436044454 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.439571658 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.443033386 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.446402931 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.449902022 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.453315257 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.456730767 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.460258263 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.463694053 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.467161507 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.470653581 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.474092335 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.477556884 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.481135698 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.484608779 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.488202897 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.491690747 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.495058432 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.498584346 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.501965932 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.505435523 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.508960044 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.512429409 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.515991276 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.521370925 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.524777429 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.528341562 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.531776044 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.535266198 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.538793858 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.542184087 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.545651243 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.549245786 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.552695603 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.556188063 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.559760466 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.563236956 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.566692172 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.570277224 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.573738111 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.577236266 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.580764509 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.584251151 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.587708604 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.591211744 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
2021-12-16 11:13:34.594667607 [E:onnxruntime:, sequential_executor.cc:346 Execute] Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running BatchNormalization node. Name:'BatchNormalization_001' Status Message: Invalid input scale: NumDimensions() != 3
ytaous commented 2 years ago

@wenbingl - should the user stick with https://github.com/onnx/models/tree/master/vision/classification/vgg#environment ?

wangxudong-cq commented 2 years ago

@wenbingl - should the user stick with https://github.com/onnx/models/tree/master/vision/classification/vgg#environment ?

The same issue for environment "onnx: 1.9.0 onnxruntime: 1.8.0"

ytaous commented 2 years ago

Yes, I can repro it. I'll file a bug/enhancement for future investigation.

wangxudong-cq commented 2 years ago

@ytaous what is the progress now?