From 7324aef9a86babd43b037b14b4cfef234e4c5db2 Mon Sep 17 00:00:00 2001 From: Joel Schlosser Date: Tue, 7 Mar 2023 13:57:05 -0500 Subject: [PATCH] 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 --- docs/source/nested.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/nested.rst b/docs/source/nested.rst index 69cf693ac6a..2b4e3fad981 100644 --- a/docs/source/nested.rst +++ b/docs/source/nested.rst @@ -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."