practical-pytorch icon indicating copy to clipboard operation
practical-pytorch copied to clipboard

Go to https://github.com/pytorch/tutorials - this repo is deprecated and no longer maintained

Results 91 practical-pytorch issues
Sort by recently updated
recently updated
newest added

`output` gives `tensor([[-1.5800e-01, ... 1.1632e-01]], grad_fn=)` `target` gives `tensor([10, 29, 14, 73, 96, 55, ..., 94])` `target[c]` gives `tensor(10)` So `criterion(output, target[c])` gives `RuntimeError: dimension specified as 0 but tensor...

Hi, Thanks for the wonderful explanation. I am using this code as guideline to build a speech recognition network. I am giving speech frames (sequence of 40-dim feature vectors) as...

`for b in range(this_batch_size): # Calculate energy for each encoder output for i in range(max_len): attn_energies[b, i] = self.score(hidden[:, b], encoder_outputs[i, b].unsqueeze(0))` A better way to handle it is just...

Fix the length (originally it's char length)

`__init__.py` fails with AttributeError, `max_length` does not exist. Fixing this results in a concat error in the `Attn` class: ~~~ 45 elif self.method == 'concat': ---> 46 energy = self.attn(torch.cat((hidden,...

This PR fixes all the issue with BahdanauAttnDecoderRNN class and makes the NMT trainable with it as well. The changes consist of the following: * Syntax fixes (wrong class in...

In seq2seq-translation-batched.ipynb When running evaluating, it occurs CuDNNError: 8: b'CUDNN_STATUS_EXECUTION_FAILED' I have tried to downgrade pytorch to 0.3.1 It didn't work. pytorch version: 0.3.1 and 0.4.1 cuda 9.0 cudnn 7.1.4

Hi , spro . I run your code on pyTorch==0.4 cuda==9.0 and it have runtime error (I fixed )and many deprecate warning. could your tell me your pyTorch version ....

[flake8](http://flake8.pycqa.org) testing of https://github.com/spro/practical-pytorch on Python 3.7.0 $ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__ ``` ./seq2seq-translation/seq2seq-translation-batched.py:22:1: F821 undefined name 'matplotlib' matplotlib.use('Agg') ^ ./seq2seq-translation/seq2seq-translation-batched.py:56:11: F821 undefined name 'EncoderRNN' encoder = EncoderRNN(input_lang.n_words,...