d283e7d051a51f0108ff3e7d9b2ad4ca00f78184,autokeras/preprocessor.py,ImageDataTransformer,_transform,#ImageDataTransformer#Any#Any#Any#,171
Before Change
def _transform(self, compose_list, data, targets):
data = data / self.max_val
data = torch.Tensor(data.transpose(0, 3, 1, 2))
data_transforms = Compose(compose_list)
return MultiTransformDataset(data, targets, data_transforms)
After Change
def _transform(self, compose_list, data, targets):
data = data / self.max_val
args = [0, len(data.shape) - 1] + list(range(1, len(data.shape) - 1))
data = torch.Tensor(data.transpose(*args))
data_transforms = Compose(compose_list)
return MultiTransformDataset(data, targets, data_transforms)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: jhfjhfj1/autokeras
Commit Name: d283e7d051a51f0108ff3e7d9b2ad4ca00f78184
Time: 2018-11-04
Author: jhfjhfj1@gmail.com
File Name: autokeras/preprocessor.py
Class Name: ImageDataTransformer
Method Name: _transform
Project Name: ixaxaar/pytorch-dnc
Commit Name: 4dde9c49f8cf467b7c11675005cdcd2be1b07e1a
Time: 2017-11-01
Author: root@ixaxaar.in
File Name: dnc/dnc.py
Class Name: DNC
Method Name: forward
Project Name: ixaxaar/pytorch-dnc
Commit Name: af1a77ca7fbc2bdabec7e859b7046ea3a28b6081
Time: 2017-11-01
Author: root@ixaxaar.in
File Name: dnc/dnc.py
Class Name: DNC
Method Name: forward