MaybeOwned page for dev wiki (#63450)
authorBasil Hosmer <bhosmer@fb.com>
Wed, 18 Aug 2021 19:06:53 +0000 (12:06 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 18 Aug 2021 19:08:58 +0000 (12:08 -0700)
commit11fbd3958cb7ab69a9764d9ae9b000f24333ec40
treead0eec00b487ea9b1a15c70a2cfd06fe3648d165
parent9bb1371cc20a14907dbc47bc98e3ac5de866e34b
MaybeOwned page for dev wiki (#63450)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/63450

Brief guide to understanding `MaybeOwned<Tensor>`, aimed at C++ PT devs who are obliged to interact with existing uses of it, rather than encouraging new usage.

For reviewers: I haven't yet added a link to this page from anywhere. I'm thinking the right place is the [dev wiki main page C++ section](https://github.com/pytorch/pytorch/wiki#c) but happy to put it wherever makes sense, suggestions welcome.

Test Plan: Imported from OSS

Reviewed By: navahgar

Differential Revision: D30402313

Pulled By: bhosmer

fbshipit-source-id: 69b15909ecafcd8d88e44f664f88c3ad4eb26d84
docs/cpp/source/notes/maybe_owned.rst [new file with mode: 0644]