Skip to content

Commit 1551005

Browse files
authored
Update pointnet.py
Softmax should be taken across each element of the batch instead of across batch
1 parent 2ec315f commit 1551005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pointnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def forward(self, x):
101101
x = F.relu(self.bn1(self.fc1(x)))
102102
x = F.relu(self.bn2(self.fc2(x)))
103103
x = self.fc3(x)
104-
return F.log_softmax(x, dim=0), trans
104+
return F.log_softmax(x, dim=1), trans
105105

106106
class PointNetDenseCls(nn.Module):
107107
def __init__(self, k = 2):

0 commit comments

Comments
 (0)