8dc0a7cd41a23aa58ee44bbadd14b8196a886c96,tasks/copy_task.py,,,#,93

Before Change



    input_data, target_output = generate_data(batch_size, random_length, args.input_size, args.cuda)
    // input_data = input_data.transpose(0, 1).contiguous()
    target_output = target_output.transpose(0, 1).contiguous()

    output, (chx, mhx, rv), v = rnn(input_data, None, pass_through_memory=True)
    // dncs operate batch first
    output = output.transpose(0, 1)

After Change


    if rnn.debug:
      output, (chx, mhx, rv), v = rnn(input_data, None, pass_through_memory=True)
    else:
      output, (chx, mhx, rv) = rnn(input_data, None, pass_through_memory=True)

    loss = criterion((output), target_output)

    loss.backward()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ixaxaar/pytorch-dnc
Commit Name: 8dc0a7cd41a23aa58ee44bbadd14b8196a886c96
Time: 2017-11-11
Author: root@ixaxaar.in
File Name: tasks/copy_task.py
Class Name:
Method Name:


Project Name: ixaxaar/pytorch-dnc
Commit Name: 37dce1f118af26c4bdf50fe12bf5884394f606d9
Time: 2017-11-11
Author: root@ixaxaar.in
File Name: tasks/copy_task.py
Class Name:
Method Name:


Project Name: rlworkgroup/garage
Commit Name: 5d32a2bc0aa033a4a03a005699fd6268bbaa1a7f
Time: 2020-04-29
Author: ahtsans@gmail.com
File Name: src/garage/tf/models/gru.py
Class Name:
Method Name: gru