You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently in converters/mil/frontend/torch/ops.py, for convolution, pad is set to None even if all paddings in convolution/transpose convolution are zeros. See this line of code.
For several checks in the code that requires pad to be an iterable, having it set to None will throw errors. An example is the sum check and pad copy.
In this case setting pad to [0] would work but I am not sure the intention behind using None instead.
Stack Trace
File "/Users/haohao/miniconda3/envs/xxx/lib/python3.10/site-packages/coremltools/converters/mil/frontend/torch/ops.py", line 1226, in _convolution
if sum(pad) == 0 and any(output_padding):
TypeError: 'NoneType' object is not iterable
To Reproduce
Please add a minimal code example that can reproduce the error when running it.
🐞Describing the bug
Currently in
converters/mil/frontend/torch/ops.py
, for convolution,pad
is set to None even if all paddings in convolution/transpose convolution are zeros. See this line of code.For several checks in the code that requires
pad
to be an iterable, having it set toNone
will throw errors. An example is thesum
check and pad copy.In this case setting pad to
[0]
would work but I am not sure the intention behind usingNone
instead.Stack Trace
To Reproduce
System environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: