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.
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,
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: datascienceinc/Skater
Commit Name: 5fe98231a26e08d81f9684a681af43bc2fb2b847
Time: 2017-03-16
Author: aikramer2@gmail.com
File Name: pyinterpret/model/model.py
Class Name: Model
Method Name: check_output_signature
Project Name: ray-project/ray
Commit Name: aa3fd62cac3a0f759f7d884eae3d202a5c72103b
Time: 2020-06-25
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/policy.py
Class Name: RandomEndpointPolicy
Method Name: flush