File ~/dev/pytorch-ts/pts/trainer.py:67, in Trainer.call(self, net, train_iter, validation_iter)
64 optimizer.zero_grad()
66 inputs = [v.to(self.device) for v in data_entry.values()]
---> 67 output = net(*inputs)
69 if isinstance(output, (list, tuple)):
70 loss = output[0]
File ~/dev/pytorch-ts/.venv/lib/python3.8/site-packages/torch/nn/modules/module.py:1051, in Module._call_impl(self, *input, *kwargs)
1047 # If we don't have any hooks, we want to skip the rest of the logic in
1048 # this function, and just call forward.
1049 if not (self._backward_hooks or self._forward_hooks or self._forward_pre_hooks or _global_backward_hooks
1050 or _global_forward_hooks or _global_forward_pre_hooks):
-> 1051 return forward_call(input, **kwargs)
1052 # Do not call functions when jit is used
1053 full_backward_hooks, non_full_backward_hooks = [], []
File ~/dev/pytorch-ts/.venv/lib/python3.8/site-packages/torch/nn/modules/module.py:1051, in Module._call_impl(self, *input, *kwargs)
1047 # If we don't have any hooks, we want to skip the rest of the logic in
1048 # this function, and just call forward.
1049 if not (self._backward_hooks or self._forward_hooks or self._forward_pre_hooks or _global_backward_hooks
1050 or _global_forward_hooks or _global_forward_pre_hooks):
-> 1051 return forward_call(input, **kwargs)
1052 # Do not call functions when jit is used
1053 full_backward_hooks, non_full_backward_hooks = [], []
File ~/dev/pytorch-ts/.venv/lib/python3.8/site-packages/torch/nn/modules/rnn.py:835, in GRU.forward(self, input, hx)
830 else:
831 # Each batch of the hidden state should match the input sequence that
832 # the user believes he/she is passing in.
833 hx = self.permute_hidden(hx, sorted_indices)
--> 835 self.check_forward_args(input, hx, batch_sizes)
836 if batch_sizes is None:
837 result = _VF.gru(input, hx, self._flat_weights, self.bias, self.num_layers,
838 self.dropout, self.training, self.bidirectional, self.batch_first)
I installed
pytorch-ts
by checking out the repo and installing viapip install -e .
after installing 1.9.1+cu111I get the following error trying to run the
Implicit-Quantile-Network-Example.ipynb
notebookpredictor = estimator.train(dataset.train, num_workers=8)
The full traceback is attached below