This implements the __array_ufunc method in TensorArray for better integration with NumPy. When TensorArrays are used with numpy universal functions, such as np.add(), this method will be invoked to unwrap the inputs then wrap back the output as a TensorArray.
This implements the
__array_ufunc
method inTensorArray
for better integration with NumPy. When TensorArrays are used with numpy universal functions, such asnp.add()
, this method will be invoked to unwrap the inputs then wrap back the output as a TensorArray.