models icon indicating copy to clipboard operation
models copied to clipboard

batch size is zero in tiny_yolov2 model

Open jinz2014 opened this issue 4 years ago • 1 comments

I got the following error when calling the import_onnx_model function. Thanks for the instruction on the modification.

ng_function = import_onnx_model(model.SerializeToString()) RuntimeError: Check '(batch_size.is_dynamic() || static_cast<size_t>(batch_size) > 0)' failed at /root/ng/src/ngraph/validation_util.cpp:316: While validating node 'Convolution[Convolution_51](Add_50: float{0,3,416,416}, C onstant_2: float{16,3,3,3}) -> (??)': Batch size is zero.

jinz2014 avatar Sep 06 '19 22:09 jinz2014

@jinz2014 did you had any luck on that? I reached the same point, not sure if ngraph supports dynamic batch size.

guy4261 avatar Oct 05 '20 19:10 guy4261