Skip to content

Commit

Permalink
Add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenvivek committed Nov 30, 2023
1 parent d39cb5d commit 51ceafe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions diffpose/calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def __init__(
device=None,
dtype=torch.float32,
):
"""Wrapper of pytorch3d.transforms.Transform3d with extra functionalities."""
if device is None and (R.device == t.device):
device = R.device

Expand Down
1 change: 1 addition & 0 deletions notebooks/api/02_calibration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
" device=None,\n",
" dtype=torch.float32,\n",
" ):\n",
" \"\"\"Wrapper of pytorch3d.transforms.Transform3d with extra functionalities.\"\"\"\n",
" if device is None and (R.device == t.device):\n",
" device = R.device\n",
"\n",
Expand Down

0 comments on commit 51ceafe

Please sign in to comment.