f6a908dc5a7e96e6608a9ecfe80037950bd22c95,tensorly/backend/tensorflow_backend.py,,,#,153

Before Change




for name in ["float64", "float32", "int64", "int32"]:
    TensorflowBackend.register_method(name, getattr(np, name))

for name in ["ones", "zeros", "zeros_like", "eye", "reshape", "transpose",
             "where", "sign", "abs", "sqrt", "qr", "argmin", "argmax"]:

After Change


    ]
for source_fun, target_fun_name in _FUN_NAMES:
    TensorflowBackend.register_method(target_fun_name, source_fun)
del _FUN_NAMES

register_backend(TensorflowBackend())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorly/tensorly
Commit Name: f6a908dc5a7e96e6608a9ecfe80037950bd22c95
Time: 2018-11-26
Author: scopatz@gmail.com
File Name: tensorly/backend/tensorflow_backend.py
Class Name:
Method Name:


Project Name: ruotianluo/ImageCaptioning.pytorch
Commit Name: cde27bc0dad15b0bef4b0568f6ac1778920447e5
Time: 2019-04-07
Author: rluo@ttic.edu
File Name: models/TransformerModel.py
Class Name: TransformerModel
Method Name: __init__