15ac1c2bb2627bb8fbb89b0b64709e9a50be02fd,torchsample/transforms/tensor_transforms.py,ToFile,__call__,#ToFile#,91
Before Change
def __call__(self, x, y=None):
np.save(os.path.join(self.root,"x_img-%i.npy"%self.counter), x.numpy())
if y is not None:
np.save(os.path.join(self.root,"y_img-%i.npy"%self.counter), y.numpy() )
self.counter += 1
return x, y
else:
After Change
self.counter = 0
def __call__(self, *inputs):
for idx, _input in inputs:
fpath = os.path.join(self.root, "img_%i_%i"%(self.counter, idx))
np.save(fpath, _input.numpy())
self.counter += 1
return inputs
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: ncullen93/torchsample
Commit Name: 15ac1c2bb2627bb8fbb89b0b64709e9a50be02fd
Time: 2017-05-13
Author: ncullen.th@dartmouth.edu
File Name: torchsample/transforms/tensor_transforms.py
Class Name: ToFile
Method Name: __call__
Project Name: kevinzakka/recurrent-visual-attention
Commit Name: 520e8fb57b890a7249334d9e90c9ad209d0b849f
Time: 2018-02-10
Author: kevinarmandzakka@gmail.com
File Name: modules.py
Class Name: retina
Method Name: foveate
Project Name: hunkim/PyTorchZeroToAll
Commit Name: 55b880469ced115de9949d5d25ff835dabbb2caa
Time: 2017-11-08
Author: hunkim@gmail.com
File Name: 12_2_hello_rnn.py
Class Name:
Method Name: