328d01bb53b37f293b7f4090293ea6395c55fc40,geomstats/backend/__init__.py,,,#,4

Before Change


    from .tensorflow import *  // NOQA
    from . import tensorflow_linalg as linalg  // NOQA
    from . import tensorflow_random as random  // NOQA
elif _BACKEND == "pytorch":
    raise NotImplementedError("pytorch backend not implemented yet")


def backend():
    return _BACKEND

After Change


    from . import numpy_random as random
    from . import numpy_testing as testing
elif _BACKEND == "pytorch":
    sys.stderr.write("Using pytorch backend\n")
    from .pytorch import *  // NOQA
    from . import pytorch_linalg as linalg  // NOQA
    from . import pytorch_random as random  // NOQA
elif _BACKEND == "tensorflow":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: geomstats/geomstats
Commit Name: 328d01bb53b37f293b7f4090293ea6395c55fc40
Time: 2018-07-13
Author: johmathe@users.noreply.github.com
File Name: geomstats/backend/__init__.py
Class Name:
Method Name:


Project Name: biotite-dev/biotite
Commit Name: d6e4f0db8b316399d8a718e5f86f30caa8942970
Time: 2019-03-07
Author: patrick.kunzm@gmail.com
File Name: src/biotite/structure/io/general.py
Class Name:
Method Name: save_structure


Project Name: probcomp/bayeslite
Commit Name: 6eddfdb1d05359bb55b07060553d8e59310f8aa8
Time: 2015-05-26
Author: riastradh+probcomp@csail.mit.edu
File Name: src/compiler.py
Class Name:
Method Name: compile_simulate