918639008702528a4c129da5fe4185c86c015835,deepmatcher/models/_utils.py,,get_module,#Any#Any#Any#Any#,22
Before Change
return cls(**kwargs)
else:
return cls(op, **kwargs)
elif six.callable(op):
return dm.modules.LazyModuleFn(op)
else:
raise ValueError(
After Change
return cls(**kwargs)
else:
return cls(op, **kwargs)
elif six.callable(op) and not isinstance(op, torch.nn.Module):
return dm.modules.LazyModuleFn(op)
else:
raise ValueError(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: anhaidgroup/deepmatcher
Commit Name: 918639008702528a4c129da5fe4185c86c015835
Time: 2018-04-30
Author: sidharthmsk@gmail.com
File Name: deepmatcher/models/_utils.py
Class Name:
Method Name: get_module
Project Name: inferno-pytorch/inferno
Commit Name: 738f7a2a9c2597b5a19f5805c499a2ca1090a12a
Time: 2017-07-29
Author: nasim.rahaman@iwr.uni-heidelberg.de
File Name: inferno/trainers/basic.py
Class Name: Trainer
Method Name: build_optimizer
Project Name: scipy/scipy
Commit Name: 1a77355da7d1a340aeb0017235f6e1fd1f179730
Time: 2019-11-16
Author: pav@iki.fi
File Name: scipy/__init__.py
Class Name:
Method Name: