x(Variable): A Tensor which contains padding data, and its shape size can not be less than 2.
x(Tensor): A Tensor which contains padding data, and its shape size can not be less than 2.
Supported data types: float32, float64, int32, int64.
length(Variable): A 1D Tensor that stores the actual length of each sample, and the Tensor
length(Tensor): A 1D Tensor that stores the actual length of each sample, and the Tensor
has the same shape with the 0th dimension of the X . Supported data types: int64.
name(str|None, optional): The default value is None. Normally there is no need for user to set this property.
name(str|None): The default value is None. Normally there is no need for user to set this property.
For more information, please refer to :ref:`api_guide_Name`
Returns:
Variable: A LoDTensor whose recursive sequence length is consistent with the information of the length parameter and it has the same data type with input.
Tensor: A Tensor whose recursive sequence length is consistent with the information of the length parameter and it has the same data type with input.