[Doc] `make_tensor` to `torch.testing` module (#63925)
authorKushashwa Ravi Shrimali <kushashwaravishrimali@gmail.com>
Mon, 30 Aug 2021 19:16:23 +0000 (12:16 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 30 Aug 2021 19:25:40 +0000 (12:25 -0700)
commitd37636901ed1c65c1f8b68e36e37e59eb503c554
tree9451ab83cdb6382b0f7e91d29d14e7e1fb509cde
parent5b0dfd0f8aff50e2fce8f2f1fe6f2ef0594a9e25
[Doc] `make_tensor` to `torch.testing` module (#63925)

Summary:
This PR aims to add `make_tensor` to the `torch.testing` module in PyTorch docs.

TODOs:

* [x] Add examples

cc: pmeier mruberry brianjo

Pull Request resolved: https://github.com/pytorch/pytorch/pull/63925

Reviewed By: ngimel

Differential Revision: D30633487

Pulled By: mruberry

fbshipit-source-id: 8e5a1f880c6ece5925b4039fee8122bd739538af
24 files changed:
docs/source/testing.rst
test/test_autograd.py
test/test_binary_ufuncs.py
test/test_buffer_protocol.py
test/test_foreach.py
test/test_indexing.py
test/test_jit.py
test/test_linalg.py
test/test_ops.py
test/test_reductions.py
test/test_shape_ops.py
test/test_sort_and_select.py
test/test_sparse.py
test/test_sparse_csr.py
test/test_tensor_creation_ops.py
test/test_testing.py
test/test_torch.py
test/test_unary_ufuncs.py
test/test_view_ops.py
torch/testing/__init__.py
torch/testing/_creation.py [new file with mode: 0644]
torch/testing/_internal/common_methods_invocations.py
torch/testing/_internal/common_modules.py
torch/testing/_internal/common_utils.py