"Unknown shape for input tensor[tensor name: '{}'] -> shape: {}, Please define shape of input here,\nNote:you can use visualization tools like Netron to check input shape."
"Input tensor[tensor name: '{}'] -> shape: {}, Please define shape of input here,\nNote:you can use visualization tools like Netron to check input shape."
.format(vi.name,shape))
.format(vi.name,shape))
right_shape_been_input=False
right_shape_been_input=False
whilenotright_shape_been_input:
whilenotright_shape_been_input:
...
@@ -200,8 +200,8 @@ class ONNXGraph(Graph):
...
@@ -200,8 +200,8 @@ class ONNXGraph(Graph):
print("Only 1 dimension can be -1, type again:)")
print("Only 1 dimension can be -1, type again:)")
else:
else:
right_shape_been_input=True
right_shape_been_input=True
ifshape=='N':
ifshape=='N':
break
break
shape=[int(dim)fordiminshape.strip().split(',')]
shape=[int(dim)fordiminshape.strip().split(',')]
assertshape.count(-1)<=1,"Only one dimension can be -1"
assertshape.count(-1)<=1,"Only one dimension can be -1"