Загрузка
batch_sizesAll RNN modules accept packed sequences as inputs.
data (Tensor) – Tensor containing packed sequence
batch_sizes (Tensor) – Tensor of integers holding information about the batch size at each sequence step
sorted_indices (Tensor, optional) – Tensor of integers holding how this
PackedSequence is constructed from sequences.
unsorted_indices (Tensor, optional) – Tensor of integers holding how this to recover the original sequences with correct order.
Self
Alias for field number 1
Return number of occurrences of value.
Alias for field number 0
Return first index of value.
Raises ValueError if the value is not present.
Return true if self.data stored on a gpu.
Return true if self.data stored on in pinned memory.
Perform dtype and/or device conversion on self.data.
It has similar signature as torch.Tensor.to()
Self