Defined in tensorflow/_api/v1/ragged/__init__.py.
Ragged Tensors.
This package defines ops for manipulating ragged tensors (tf.RaggedTensor),
which are tensors with non-uniform shapes. In particular, each RaggedTensor
has one or more ragged dimensions, which are dimensions whose slices may have
different lengths. For example, the inner (column) dimension of
rt=[[3, 1, 4, 1], [], [5, 9, 2], [6], []] is ragged, since the column slices
(rt[0, :], ..., rt[4, :]) have different lengths. For a more detailed
description of ragged tensors, see the tf.RaggedTensor class documentation
and the Ragged Tensor Guide.
Additional ops that support RaggedTensor
tf.debugging.check_numericstf.identitytf.ones_liketf.ones_liketf.zeros_liketf.zeros_liketf.clip_by_valuetf.math.abstf.math.acostf.math.acoshtf.math.angletf.math.asintf.math.asinhtf.math.atantf.math.atanhtf.dtypes.casttf.math.ceiltf.math.conjtf.math.costf.math.coshtf.math.digammatf.math.erftf.math.erfctf.math.exptf.math.expm1tf.math.floortf.math.imagtf.math.is_finitetf.math.is_inftf.math.is_nantf.math.lgammatf.math.logtf.math.log1ptf.math.log_sigmoidtf.math.logical_nottf.math.negativetf.math.realtf.math.reciprocaltf.math.rinttf.math.roundtf.math.rsqrttf.dtypes.saturate_casttf.math.signtf.math.sintf.math.sinhtf.math.sqrttf.math.squaretf.math.tantf.io.decode_compressedtf.strings.to_numbertf.strings.to_hash_buckettf.dtypes.as_stringtf.io.decode_base64tf.io.encode_base64tf.strings.regex_full_matchtf.strings.regex_replacetf.strings.striptf.strings.to_hash_buckettf.strings.to_hash_bucket_fasttf.strings.to_hash_bucket_strongtf.strings.substrtf.strings.substrtf.strings.lengthtf.strings.lengthtf.strings.unicode_scripttf.math.add_ntf.strings.jointf.math.addtf.math.atan2tf.dtypes.complextf.div_no_nantf.math.dividetf.math.equaltf.math.floordivtf.floormodtf.math.greatertf.math.greater_equaltf.math.lesstf.math.less_equaltf.math.logical_andtf.math.logical_ortf.math.logical_xortf.math.maximumtf.math.minimumtf.math.multiplytf.math.not_equaltf.math.powtf.realdivtf.math.squared_differencetf.math.subtracttf.math.truedivtf.truncatedivtf.truncatemodtf.batch_gathertf.concattf.expand_dimstf.expand_dimstf.gathertf.gathertf.gather_ndtf.stacktf.tiletf.wheretf.math.unsorted_segment_sumtf.math.unsorted_segment_prodtf.math.unsorted_segment_mintf.math.unsorted_segment_maxtf.math.unsorted_segment_meantf.math.unsorted_segment_sqrt_ntf.math.reduce_sumtf.math.reduce_prodtf.math.reduce_mintf.math.reduce_maxtf.math.reduce_meantf.math.reduce_anytf.reduce_all
Classes
class RaggedTensorValue: Represents the value of a RaggedTensor.
Functions
constant(...): Constructs a constant RaggedTensor from a nested Python list.
constant_value(...): Constructs a RaggedTensorValue from a nested Python list.
map_flat_values(...): Applies op to the values of one or more RaggedTensors.
range(...): Returns a RaggedTensor containing the specified sequences of numbers.
row_splits_to_segment_ids(...): Generates the segmentation corresponding to a RaggedTensor row_splits.
segment_ids_to_row_splits(...): Generates the RaggedTensor row_splits corresponding to a segmentation.