e9440acb06e1ab7a9d2f6f888a092b115da3155c,python/dgl/backend/pytorch/tensor.py,,,#,13

Before Change


from ... import kernel as K
from ...function.base import TargetCode

TH_VERSION = LooseVersion(th.__version__)

def data_type_dict():
    return {"float16" : th.float16,
            "float32" : th.float32,

After Change


from ...function.base import TargetCode
from ...base import dgl_warning

if LooseVersion(th.__version__) < LooseVersion("1.2.0"):
    dgl_warning("Detected an old version of PyTorch. Suggest using torch>=1.2.0 "
                "for the best experience.")

def data_type_dict():
    return {"float16" : th.float16,
            "float32" : th.float32,
            "float64" : th.float64,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: dmlc/dgl
Commit Name: e9440acb06e1ab7a9d2f6f888a092b115da3155c
Time: 2020-03-30
Author: VoVAllen@users.noreply.github.com
File Name: python/dgl/backend/pytorch/tensor.py
Class Name:
Method Name:


Project Name: dmlc/dgl
Commit Name: e9440acb06e1ab7a9d2f6f888a092b115da3155c
Time: 2020-03-30
Author: VoVAllen@users.noreply.github.com
File Name: python/dgl/backend/tensorflow/tensor.py
Class Name:
Method Name:


Project Name: tensorflow/datasets
Commit Name: 651fc8b64fab70a2a6e258718bb45d3f8c561ca6
Time: 2019-02-06
Author: pierrot@google.com
File Name: tensorflow_datasets/__init__.py
Class Name:
Method Name: _ensure_tf_install