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())