Skip to content

Commit

Permalink
Rename torch.Tensor to Tensor in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gpleiss committed Jul 2, 2024
1 parent 9ff4640 commit 5d1497d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ def _convert_internal_and_external_class_to_strings(annotation):
module = annotation.__module__ + "."
if module.split(".")[0] == "gpytorch":
module = "~" + module
elif module == "torch.":
module = "~torch."
elif module == "linear_operator.operators._linear_operator.":
module = "~linear_operator."
elif module == "builtins.":
Expand Down

0 comments on commit 5d1497d

Please sign in to comment.