51caa2e2cebe2e6e8c06ffbb918448dd2db011a7,dnc/dnc.py,DNC,_layer_forward,#DNC#Any#Any#Any#Any#,170
Before Change
(chx, mhx) = hx
layer_input = input
hchx = []
for hlayer in range(self.num_hidden_layers):
h = self.rnns[layer][hlayer](layer_input, chx[hlayer])
layer_input = h[0] if self.rnn_type.lower() == "lstm" else h
hchx.append(h)
chx = hchx
// the interface vector
ξ = layer_input
After Change
// pass through the controller layer
input, chx = self.rnns[layer](input.unsqueeze(1), chx)
input = input.squeeze(1)
// the interface vector
ξ = input
// the output
output = input
// pass through memory
if pass_through_memory:
if self.share_memory:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: ixaxaar/pytorch-dnc
Commit Name: 51caa2e2cebe2e6e8c06ffbb918448dd2db011a7
Time: 2017-11-10
Author: root@ixaxaar.in
File Name: dnc/dnc.py
Class Name: DNC
Method Name: _layer_forward
Project Name: ixaxaar/pytorch-dnc
Commit Name: 51caa2e2cebe2e6e8c06ffbb918448dd2db011a7
Time: 2017-11-10
Author: root@ixaxaar.in
File Name: dnc/dnc.py
Class Name: DNC
Method Name: _layer_forward
Project Name: ixaxaar/pytorch-dnc
Commit Name: aa9592d811ad9765e06dd0e638e7cee9e5f4b00c
Time: 2017-11-10
Author: root@ixaxaar.in
File Name: dnc/dnc.py
Class Name: DNC
Method Name: _layer_forward
Project Name: facebookresearch/Horizon
Commit Name: 3806cabde6ec138fbfda3468174517fe54f230bf
Time: 2020-05-20
Author: kaiwenw@fb.com
File Name: reagent/gym/tests/test_gym.py
Class Name:
Method Name: run_test