014963415d1cbc895f8c6f9e7f161950e37dc42e,kymatio/scattering2d/backend/torch_skcuda_backend.py,,_get_dtype,#,20
Before Change
Stream = namedtuple("Stream", ["ptr"])
def _get_dtype(t):
if isinstance(t, torch.cuda.FloatTensor):
return "float"
elif isinstance(t, torch.cuda.DoubleTensor):
return "double"
def _iscomplex(x):
return x.shape[-1] == 2
def _isreal(x):
After Change
Stream = namedtuple("Stream", ["ptr"])
def _get_dtype(t):
dtypes = {torch.float32: "float",
torch.float64: "double"}
return dtypes[t.dtype]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: kymatio/kymatio
Commit Name: 014963415d1cbc895f8c6f9e7f161950e37dc42e
Time: 2020-02-18
Author: janden@flatironinstitute.org
File Name: kymatio/scattering2d/backend/torch_skcuda_backend.py
Class Name:
Method Name: _get_dtype
Project Name: kkroening/ffmpeg-python
Commit Name: 57abf6e86edbf1d9ff1448302d4c8bf970092a03
Time: 2018-03-11
Author: karlk@kralnet.us
File Name: ffmpeg/nodes.py
Class Name: Node
Method Name: __init__
Project Name: GPflow/GPflow
Commit Name: f31a914bd38b00affc978d7ef1834e1303af5b4c
Time: 2018-09-20
Author: art.art.v@gmail.com
File Name: gpflow/models/model.py
Class Name: GPModel
Method Name: __init__