Skip to content

Commit

Permalink
refactor(PointNetBackbone): remove unnecessary clone
Browse files Browse the repository at this point in the history
  • Loading branch information
adosar committed Jan 4, 2025
1 parent 8cdf4c6 commit 59f26d0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/aidsorb/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,7 @@ def forward(self, x):
n_points = x.shape[2]

x = self.shared_mlp_1(x)

if self.local_feats:
point_feats = x.clone()

point_feats = x
x = self.shared_mlp_2(x)

# Shape (B, n_global_feats).
Expand Down

0 comments on commit 59f26d0

Please sign in to comment.