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
Hi! I'm trying to load the models in C++ too, but I'm having the following error:
terminate called after throwing an instance of 'torch::jit::ErrorReport' what():
aten::_convolution(Tensor input, Tensor weight, Tensor? bias, int[] stride, int[] padding, int[] dilation, bool transposed, int[] output_padding, int groups, bool benchmark, bool deterministic, bool cudnn_enabled) -> (Tensor):
Expected at most 12 arguments but found 13 positional arguments.
Hi! I'm trying to load the models in C++ too, but I'm having the following error:
terminate called after throwing an instance of 'torch::jit::ErrorReport' what():
aten::_convolution(Tensor input, Tensor weight, Tensor? bias, int[] stride, int[] padding, int[] dilation, bool transposed, int[] output_padding, int groups, bool benchmark, bool deterministic, bool cudnn_enabled) -> (Tensor):
Expected at most 12 arguments but found 13 positional arguments.
_ Serialized File "code/torch/torch/nn/modules/conv.py", line 8
def forward(self: torch.torch.nn.modules.conv.Conv2d,
input: Tensor) -> Tensor:
input0 = torch.convolution(input, self.weight, None, [2, 2], [3, 3], [1, 1], False, [0, 0], 1, False, False, True, True)
~~~~~~~~~~~~~~~~~~ <--- HERE
return input0
I used the model trained in cars example (jupyternotebook)
Then I saved it using torch.jit.save as following :
When I load the model in c++ using torch::jit::load(model_path.string()); it result in an error.
I'm using Pytorch 1.71
The text was updated successfully, but these errors were encountered: