15f1d4d4f16a174c0290d6a602418004651a16f4,tensorly/backend/mxnet_backend.py,,,#,10
Before Change
from . import numpy_backend
dtypes = ["int64", "int32", "float32", "float64"]
for dtype in dtypes:
vars()[dtype] = getattr(numpy, dtype)
def context(tensor):
Returns the context of a tensor
return {"ctx":tensor.context, "dtype":tensor.dtype}
After Change
from .generic import kron, kr, partial_svd
backend = _generics.new_backend("mxnet")
for name in ["float64", "float32", "int64", "int32"]:
backend.register(getattr(numpy, name), name=name)
for name in ["arange", "zeros", "zeros_like", "ones", "eye",
"moveaxis", "dot", "transpose", "reshape",
"where", "sign", "prod"]:
backend.register(getattr(nd, name), name=name)
backend.register(kron)
backend.register(kr)
backend.register(partial_svd)
@backend.register
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 27
Instances
Project Name: tensorly/tensorly
Commit Name: 15f1d4d4f16a174c0290d6a602418004651a16f4
Time: 2018-09-27
Author: jiminy.crist@gmail.com
File Name: tensorly/backend/mxnet_backend.py
Class Name:
Method Name:
Project Name: tensorly/tensorly
Commit Name: 15f1d4d4f16a174c0290d6a602418004651a16f4
Time: 2018-09-27
Author: jiminy.crist@gmail.com
File Name: tensorly/backend/mxnet_backend.py
Class Name:
Method Name:
Project Name: tensorly/tensorly
Commit Name: b9dbf5d7b005afe69aee7bf500f8caf721e57708
Time: 2018-09-28
Author: jiminy.crist@gmail.com
File Name: tensorly/backend/cupy_backend.py
Class Name:
Method Name:
Project Name: tensorly/tensorly
Commit Name: 6dcb645ed16ee44a53f68576c5812774cd9485f1
Time: 2018-09-27
Author: jiminy.crist@gmail.com
File Name: tensorly/backend/numpy_backend.py
Class Name:
Method Name: