f4ca9b361adb382423c753f7f864a5dd0e454964,torchsample/transforms/tensor_transforms.py,ToTensor,__call__,#ToTensor#,42

Before Change


    
    
    def __call__(self, x, y=None):
        x = th.from_numpy(x)
        if y is not None:
            y = th.from_numpy(y)
            return x, y
        return x

After Change


        for idx, _input in enumerate(inputs):
            _input = th.from_numpy(_input)
            outputs.append(_input)
        return outputs if idx > 1 else outputs[0]


class ToVariable(object):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: ncullen93/torchsample
Commit Name: f4ca9b361adb382423c753f7f864a5dd0e454964
Time: 2017-05-12
Author: ncullen.th@dartmouth.edu
File Name: torchsample/transforms/tensor_transforms.py
Class Name: ToTensor
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: extract_patch


Project Name: kymatio/kymatio
Commit Name: 82c6a31ddcd1ced474c5d6620b2053f9db600e5e
Time: 2020-02-18
Author: edouard.oyallon@ens.fr
File Name: examples/1d/plot_real_signal.py
Class Name:
Method Name:


Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: 142bc348f80ae6c1f6ede5b598b0443af8048717
Time: 2018-05-22
Author: eriklindernoren@live.se
File Name: utils.py
Class Name:
Method Name: non_max_suppression