CODAIT / text-extensions-for-pandas

Natural language processing support for Pandas dataframes.
Apache License 2.0
215 stars 34 forks source link

Adding NumPy ufunc to TensorArray #187

Closed BryanCutler closed 3 years ago

BryanCutler commented 3 years ago

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.

BryanCutler commented 3 years ago

@frreiss this is to improve numpy integration with TensorArray. I might touch on this in my blog so will be good to add this.