ak.to_tensorflow#

Defined in awkward.operations.ak_to_tensorflow on line 15.

ak.to_tensorflow(array)#

Converts an Awkward Array into a TensorFlow Tensor, if possible.

If array contains any other data types (RecordArray for example) the function raises a TypeError.

Parameters:

array – Array-like data (anything ak.to_layout recognizes).

Returns:

A TensorFlow Tensor with the same data as array, if the conversion is possible.