提交 7a5cb506 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Document the clone() method.

上级 0d04e12b
...@@ -138,6 +138,16 @@ default values. ...@@ -138,6 +138,16 @@ default values.
:return: the number of bytes taken by the object described by :return: the number of bytes taken by the object described by
``shape_info``. ``shape_info``.
.. method:: clone(dtype=None, broadcastable=None)
Optional, for TensorType-alikes.
Return a copy of the type with a possibly changed value for
dtype and broadcastable (if they aren't `None`).
:param dtype: New dtype for the copy.
:param broadcastable: New broadcastable tuple for the copy.
.. method:: may_share_memory(a, b) .. method:: may_share_memory(a, b)
Optional to run, but mandatory for DebugMode. Return True if the Python Optional to run, but mandatory for DebugMode. Return True if the Python
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论