Skip to content

Commit 5d1497d

Browse files
committed
Rename torch.Tensor to Tensor in docs
1 parent 9ff4640 commit 5d1497d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/source/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ def _convert_internal_and_external_class_to_strings(annotation):
253253
module = annotation.__module__ + "."
254254
if module.split(".")[0] == "gpytorch":
255255
module = "~" + module
256+
elif module == "torch.":
257+
module = "~torch."
256258
elif module == "linear_operator.operators._linear_operator.":
257259
module = "~linear_operator."
258260
elif module == "builtins.":

0 commit comments

Comments
 (0)