mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-21 14:50:36 +08:00
lint fixes
Summary: Ran the linter. TODO: need to update the linter as per D21353065. Reviewed By: bottler Differential Revision: D21362270 fbshipit-source-id: ad0e781de0a29f565ad25c43bc94a19b1828c020
This commit is contained in:
committed by
Facebook GitHub Bot
parent
0c595dcf5b
commit
0eca74fa5f
@@ -926,8 +926,8 @@ class Meshes(object):
|
||||
self._num_verts_per_mesh = torch.zeros(
|
||||
(0,), dtype=torch.int64, device=self.device
|
||||
)
|
||||
self._faces_packed = -torch.ones(
|
||||
(0, 3), dtype=torch.int64, device=self.device
|
||||
self._faces_packed = -(
|
||||
torch.ones((0, 3), dtype=torch.int64, device=self.device)
|
||||
)
|
||||
self._faces_packed_to_mesh_idx = torch.zeros(
|
||||
(0,), dtype=torch.int64, device=self.device
|
||||
@@ -977,8 +977,8 @@ class Meshes(object):
|
||||
return
|
||||
|
||||
if self.isempty():
|
||||
self._edges_packed = -torch.ones(
|
||||
(0, 2), dtype=torch.int64, device=self.device
|
||||
self._edges_packed = torch.full(
|
||||
(0, 2), fill_value=-1, dtype=torch.int64, device=self.device
|
||||
)
|
||||
self._edges_packed_to_mesh_idx = torch.zeros(
|
||||
(0,), dtype=torch.int64, device=self.device
|
||||
|
||||
Reference in New Issue
Block a user