summaryrefslogtreecommitdiff
path: root/torch/_utils.py
diff options
context:
space:
mode:
authorRichard Zou <zou3519@users.noreply.github.com>2018-03-14 17:59:31 -0400
committerSoumith Chintala <soumith@gmail.com>2018-03-14 17:59:31 -0400
commit1709484a40785b87c545b6d4c354ce19ee9d5813 (patch)
treeca82d0d7a06a6415e8e23d5aeccfa53a9e70d657 /torch/_utils.py
parentbedba9c156c006416a702b785624c5f92ab63996 (diff)
downloadpytorch-1709484a40785b87c545b6d4c354ce19ee9d5813.tar.gz
pytorch-1709484a40785b87c545b6d4c354ce19ee9d5813.tar.bz2
pytorch-1709484a40785b87c545b6d4c354ce19ee9d5813.zip
Restore tensor.type, tensor.type_as docs (#5746)
Diffstat (limited to 'torch/_utils.py')
-rw-r--r--torch/_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/torch/_utils.py b/torch/_utils.py
index f4e8ae1982..03fa124938 100644
--- a/torch/_utils.py
+++ b/torch/_utils.py
@@ -18,7 +18,7 @@ def _type(self, dtype=None, non_blocking=False, **kwargs):
asynchronously with respect to the host. Otherwise, the argument
has no effect.
**kwargs: For compatibility, may contain the key ``async`` in place of
- the ``non_blocking`` argument.
+ the ``non_blocking`` argument. The ``async`` arg is deprecated.
"""
non_blocking = _get_async_or_non_blocking('type', non_blocking, kwargs)
if dtype is None: