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 51ceafe commit a92796e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion diffpose/calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

@beartype
class RigidTransform(Transform3d):
"""Wrapper of pytorch3d.transforms.Transform3d with extra functionalities."""

@jaxtyped
def __init__(
self,
Expand All @@ -27,7 +29,6 @@ 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
3 changes: 2 additions & 1 deletion notebooks/api/02_calibration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@
"\n",
"@beartype\n",
"class RigidTransform(Transform3d):\n",
" \"\"\"Wrapper of pytorch3d.transforms.Transform3d with extra functionalities.\"\"\"\n",
"\n",
" @jaxtyped\n",
" def __init__(\n",
" self,\n",
Expand All @@ -114,7 +116,6 @@
" 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 a92796e

Please sign in to comment.