Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: fix link
Signed-off-by: Johannes Messner <[email protected]>
  • Loading branch information
JohannesMessner committed Aug 15, 2023
commit ce068552f972cbc6749abc5400f68442582c619f
2 changes: 2 additions & 0 deletions docarray/typing/tensor/torch_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ class MyDoc(BaseDoc):

---


## Compatibility with `torch.compile()`


PyTorch 2 [introduced compilation support](https://pytorch.org/blog/pytorch-2.0-release/) in the form of `torch.compile()`.

Currently, **`torch.compile()` does not properly support subclasses of `torch.Tensor` such as `TorchTensor`**.
Expand Down
2 changes: 1 addition & 1 deletion docs/data_types/tensor/tensor.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,4 @@ PyTorch 2 [introduced compilation support](https://pytorch.org/blog/pytorch-2.0-
Currently, **`torch.compile()` does not properly support subclasses of `torch.Tensor` such as [`TorchTensor`][docarray.typing.tensor.TorchTensor]**.
The PyTorch team is currently working on a [fix for this issue](https://github.com/pytorch/pytorch/pull/105167#issuecomment-1678050808).

For a workaround to this issue, see [`TorchTensor`][docarray.typing.tensor.TorchTensor#Compatibility-with-torch-compile]
For a workaround to this issue, see the [`TorchTensor` API reference][docarray.typing.tensor.TorchTensor].