Open MarkoKostiv opened 3 years ago
This is still an issue with coremltools 5.0.
I'm not sure this is worth "supporting". What is the purpose of handling a tensor where the first dimension has zero length?
We include detection model post-processing (thresholding, masking) into the CoreML graph, and the number of detected objects can be zero. PyTorch pipeline successfully outputs an empty tensor
πDescribe the bug
Unexpected behavior with 0 size tensors concatenation from PyTorch
To Reproduce
model = ct.convert(prog)
Make a prediction with CoreML
prediction = model.predict({ 'x': np.random.rand(0, 100, 100).astype(np.float32), 'y': np.random.rand(0, 100, 120).astype(np.float32) })
prediction