mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-22 07:10:34 +08:00
Fix up docstrings
Summary: One of the docstrings is a disaster see https://pytorch3d.readthedocs.io/en/latest/modules/ops.html Also some minor fixes I encountered when browsing the code Reviewed By: bottler Differential Revision: D38581595 fbshipit-source-id: 3b6ca97788af380a44df9144a6a4cac782c6eab8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c4545a7cbc
commit
6653f4400b
@@ -165,7 +165,7 @@ class Transform3d:
|
||||
raise ValueError('"matrix" has to be a 2- or a 3-dimensional tensor.')
|
||||
if matrix.shape[-2] != 4 or matrix.shape[-1] != 4:
|
||||
raise ValueError(
|
||||
'"matrix" has to be a tensor of shape (minibatch, 4, 4)'
|
||||
'"matrix" has to be a tensor of shape (minibatch, 4, 4) or (4, 4).'
|
||||
)
|
||||
# set dtype and device from matrix
|
||||
dtype = matrix.dtype
|
||||
|
||||
Reference in New Issue
Block a user