4079060908ec43d01e86665792b165269c9545b4,dnc/dnc.py,DNC,_layer_forward,#DNC#Any#Any#Any#,167

Before Change


      else:
        read_vecs, mhx = self.memories[layer](ΞΎ, mhx)
        if self.debug:
          mem_debug.append(mhx["memory"][0].data.cpu().numpy())
      read_vectors[time] = read_vecs.view(-1, self.w * self.r)

      // get the final output for this time step

After Change


    read_vectors = [0] * max_length

    if self.debug:
      mem_debug = {
        "memory": [],
        "link_matrix": [],
        "precedence": [],
        "read_weights": [],
        "write_weights": [],
        "usage_vector": [],
      }

    for time in range(max_length):
      // pass through controller
      layer_input = input[time]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: ixaxaar/pytorch-dnc
Commit Name: 4079060908ec43d01e86665792b165269c9545b4
Time: 2017-11-02
Author: root@ixaxaar.in
File Name: dnc/dnc.py
Class Name: DNC
Method Name: _layer_forward


Project Name: victoresque/pytorch-template
Commit Name: 36093633b630d0934dae5b9abbda83d775f0e845
Time: 2018-04-18
Author: vichuang1997@gmail.com
File Name: trainer/trainer.py
Class Name: Trainer
Method Name: _valid_epoch


Project Name: ixaxaar/pytorch-dnc
Commit Name: 0bab77b7cadae1aaff59a2efcacc39bc9a9d3ecc
Time: 2017-11-02
Author: root@ixaxaar.in
File Name: dnc/dnc.py
Class Name: DNC
Method Name: _layer_forward


Project Name: victoresque/pytorch-template
Commit Name: 36093633b630d0934dae5b9abbda83d775f0e845
Time: 2018-04-18
Author: vichuang1997@gmail.com
File Name: trainer/trainer.py
Class Name: Trainer
Method Name: _train_epoch