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
A similar bug was found in ONNX model, and fixed by this PR: #7208
However, for Pytorch importation, the bug still exists.
By definition: PRelu definition in pytorch, num_parameters can be set at 1 or the number of channels at input.
However, currently PReLU in TVM seems to support num_parameters = number of channels only. So there will be an error if you set num_parameters = 1 while give input channels > 1.
And please notice that by default Pytorch set the num_parameters = 1.
(Currently, the workaround is to turn Pytorch model to ONNX model first, and then import the ONNX model.)
Description
A similar bug was found in ONNX model, and fixed by this PR: #7208
However, for Pytorch importation, the bug still exists.
By definition: PRelu definition in pytorch, num_parameters can be set at 1 or the number of channels at input.
However, currently PReLU in TVM seems to support num_parameters = number of channels only. So there will be an error if you set num_parameters = 1 while give input channels > 1.
And please notice that by default Pytorch set the num_parameters = 1.
(Currently, the workaround is to turn Pytorch model to ONNX model first, and then import the ONNX model.)
Code to reproduce
Environment
TVM version: 0.8.dev0 at cc3d60e
Pytorch version: 1.8.1
OS version: macOS 10.15.7
The text was updated successfully, but these errors were encountered: