summaryrefslogtreecommitdiff
path: root/candle-pyo3/py_src
diff options
context:
space:
mode:
Diffstat (limited to 'candle-pyo3/py_src')
-rw-r--r--candle-pyo3/py_src/candle/__init__.pyi5
1 files changed, 5 insertions, 0 deletions
diff --git a/candle-pyo3/py_src/candle/__init__.pyi b/candle-pyo3/py_src/candle/__init__.pyi
index 7a0b2fcf..43722168 100644
--- a/candle-pyo3/py_src/candle/__init__.pyi
+++ b/candle-pyo3/py_src/candle/__init__.pyi
@@ -396,6 +396,11 @@ class Tensor:
Convert the tensor to a new dtype.
"""
pass
+ def to_torch(self) -> torch.Tensor:
+ """
+ Converts candle's tensor to pytorch's tensor
+ """
+ pass
def transpose(self, dim1: int, dim2: int) -> Tensor:
"""
Returns a tensor that is a transposed version of the input, the given dimensions are swapped.