b6240c06fb49020e2d51703a1fcfddba7e27297d,bindsnet/network/network.py,Network,run,#Network#Any#Any#,229
Before Change
// Overwrite the None with a specific time.
t_slice[input_time_dim[l]] = t
// Pull out that individual time slice and ensure the memory is contiguous.
self.layers[l].forward(x=inpts[l][t_slice].contiguous() )
else:
self.layers[l].forward(x=inpts[l])
After Change
reward = self.reward_fn.compute(**kwargs)
// Dynamic setting of batch size.
if inpts != {}:
for key in inpts:
if inpts[key].size(0) != self.batch_size:
self.batch_size = inpts[key].size(0)
for l in self.layers:
self.layers[l].set_batch_size(self.batch_size)
for m in self.monitors:
self.monitors[m].reset_()
break
// Effective number of timesteps.
timesteps = int(time / self.dt)
// Get input to all layers.
inpts.update(self.get_inputs())
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: BindsNET/bindsnet
Commit Name: b6240c06fb49020e2d51703a1fcfddba7e27297d
Time: 2019-06-21
Author: djsaunde@umass.edu
File Name: bindsnet/network/network.py
Class Name: Network
Method Name: run
Project Name: ncullen93/torchsample
Commit Name: 943753c968fe7c0cbafc6e44d60f1b28b42e997b
Time: 2017-05-03
Author: ncullen.th@dartmouth.edu
File Name: torchsample/utils.py
Class Name:
Method Name: th_affine2d
Project Name: NVIDIA/sentiment-discovery
Commit Name: 65c9a4857e41dcde4f5dae8a77e6cdf03953646a
Time: 2018-03-19
Author: raulp@dbcluster.nvidia.com
File Name: model/model.py
Class Name: RNNFeaturizer
Method Name: forward