bee774aa7ab224e6646abe41022291ad34ff3fd5,12_1_rnn_basics.py,,,#,6

Before Change


    one = one.view(1, 1, -1)
    // Input: (batch, seq_len, input_size) when batch_first=True
    out, hidden = cell(one, hidden)
    print(out.size())

// We can do the whole at once
// Propagate input through RNN
// Input: (batch, seq_len, input_size) when batch_first=True

After Change


// We can do the whole at once
// Propagate input through RNN
// Input: (batch, seq_len, input_size) when batch_first=True
inputs = inputs.view(1, 5, -1)
out, hidden = cell(inputs, hidden)
print("sequence input size", inputs.size(), "out size", out.size())

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: hunkim/PyTorchZeroToAll
Commit Name: bee774aa7ab224e6646abe41022291ad34ff3fd5
Time: 2017-11-11
Author: hunkim@gmail.com
File Name: 12_1_rnn_basics.py
Class Name:
Method Name:


Project Name: BindsNET/bindsnet
Commit Name: c37e88c88cc7cb3a38a88a9465b106e3e86c74b9
Time: 2018-06-20
Author: hqkhan@umass.edu
File Name: bindsnet/evaluation/__init__.py
Class Name:
Method Name: update_ngram_scores


Project Name: eriklindernoren/PyTorch-GAN
Commit Name: 3c1549620cb4801c12a3d38f91ef03e44f3d5a52
Time: 2018-04-24
Author: eriklindernoren@gmail.com
File Name: implementations/bicyclegan/models.py
Class Name: Encoder
Method Name: forward