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
{{ message }}
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.
After successfully building with the help of the link, I tried running the tutorial, but it is failing.
Cell In[2], line 26, in Net.forward(self, input)
23 # RNN output shape is (seq_len, batch, input_size)
24 # Get last output of RNN
25 output = output[:, -1, :]
---> 26 output = self.norm(output)
27 output = self.dropout1(output)
28 output = self.fc1(output)
File [~/anaconda3/envs/py38/lib/python3.8/site-packages/torch/nn/modules/module.py:1190](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/baron/dev/trident/examples/~/anaconda3/envs/py38/lib/python3.8/site-packages/torch/nn/modules/module.py:1190), in Module._call_impl(self, *input, **kwargs)
...
35 ) = args
37 if use_input_stats:
38 InstanceNorm.__optimize(inp, run_mean, run_var, momentum)
ValueError: too many values to unpack (expected 8)
The context for performing the backward operation is passed as the first argument in the forward function of torch.autograd.Function, but only custom ops are used in the custom class(e.g: InstanceNorm, ReLU, ... ).
Am I missing something?
💻 Requirements
Platform: Ubuntu 22.04.2 LTS(WSL2)
Version: Python 3.8.17, PyTorch 1.13.0
💬 Additional context
Of course, it works well if you modify the forward function as follows.
🐞 Describe the bug
After successfully building with the help of the link, I tried running the tutorial, but it is failing.
The context for performing the backward operation is passed as the first argument in the forward function of torch.autograd.Function, but only custom ops are used in the custom class(e.g: InstanceNorm, ReLU, ... ).
Am I missing something?
💻 Requirements
💬 Additional context
Of course, it works well if you modify the forward function as follows.
The text was updated successfully, but these errors were encountered: