ak.to_raggedtensor#
Defined in awkward.operations.ak_to_raggedtensor on line 15.
- ak.to_raggedtensor(array)#
Converts an Awkward Array into a TensorFlow RaggedTensor, if possible.
If
arraycontains any other data types (RecordArray for example) the function raises an error.- Parameters:
array – Array-like data (anything
ak.to_layoutrecognizes).- Returns:
A TensorFlow RaggedTensor with the same data as
array, if the conversion is possible.