Add torch.empty_like() to documented list of supported nested tensor ops (#96211)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/96211
Approved by: https://github.com/drisspg
This commit is contained in:
Joel Schlosser 2023-03-07 13:57:05 -05:00 committed by PyTorch MergeBot
parent b0b5f3c6c6
commit 7324aef9a8

View file

@ -212,3 +212,4 @@ NestedTensor and any constraints they have.
:func:`torch.Tensor.reshape_as`; "Similar constraint as for ``reshape``."
:func:`torch.transpose`; "Supports transposing of all dims except ``dim=0``."
:func:`torch.Tensor.view`; "Rules for the new shape are similar to that of ``reshape``."
:func:`torch.empty_like`; "Behavior is analogous to that of regular tensors; returns a new empty nested tensor (i.e. with uninitialized values) matching the nested structure of the input."