diff options
Diffstat (limited to 'torch/_utils.py')
-rw-r--r-- | torch/_utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/torch/_utils.py b/torch/_utils.py index 2d2498842b..934ce82bb8 100644 --- a/torch/_utils.py +++ b/torch/_utils.py @@ -3,7 +3,8 @@ import importlib def _type(self, new_type=None, async=False): - """Returns the type if `new_type` is not provided, else casts this object to the specified type. + """Returns the type if `new_type` is not provided, else casts this object to + the specified type. If this is already of the correct type, no copy is performed and the original object is returned. |