25fbc56b910b394c02f0c2673630f602899ddc56,examples/mnist/conv_mnist.py,,,#,11

Before Change


	inpts = {"X" : sample}
	
	// Run the network on the input.
	choice = np.random.choice(per_class, size=10, replace=False)
	clamp = {"Y" : per_class * labels[i].long() + torch.Tensor(choice).long()}
	network.run(inpts=inpts, time=time)
	
	// Optionally plot various simulation information.
	if plot:

After Change



w = torch.zeros(1, n_filters, conv_size, conv_size, 1, n_filters, conv_size, conv_size)
for fltr1 in range(n_filters):
	for fltr2 in range(n_filters):
		if fltr1 != fltr2:
			for i in range(conv_size):
				for j in range(conv_size):
					w[0, fltr1, i, j, 0, fltr2, i, j] = -100.0
					
print(w)

recurrent_conn = Connection(conv_layer,
					        conv_layer,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: BindsNET/bindsnet
Commit Name: 25fbc56b910b394c02f0c2673630f602899ddc56
Time: 2018-05-25
Author: djsaunde@cs.umass.edu
File Name: examples/mnist/conv_mnist.py
Class Name:
Method Name:


Project Name: allenai/allennlp
Commit Name: 5d3828219d1afc9c6018a9f3779a7a7768ed7e15
Time: 2018-06-26
Author: markn@allenai.org
File Name: allennlp/models/semantic_role_labeler.py
Class Name: SemanticRoleLabeler
Method Name: forward


Project Name: BindsNET/bindsnet
Commit Name: 25fbc56b910b394c02f0c2673630f602899ddc56
Time: 2018-05-25
Author: djsaunde@cs.umass.edu
File Name: examples/mnist/conv_mnist.py
Class Name:
Method Name:


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