803d7e1fc61536c846c811bdee158bd21db36779,models/Pointnet2Cls.py,,,#,92
Before Change
if __name__ == "__main__":
from torch.autograd import Variable
model = PointnetCls()
data = Variable(torch.randn(2, 10, 3))
print(model(data))
After Change
optimizer.zero_grad()
_, loss, _ = model_fn(model, (inputs, labels))
loss.backward()
print(loss.data[0])
optimizer.step()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: erikwijmans/Pointnet2_PyTorch
Commit Name: 803d7e1fc61536c846c811bdee158bd21db36779
Time: 2017-12-26
Author: ewijmans2@gmail.com
File Name: models/Pointnet2Cls.py
Class Name:
Method Name:
Project Name: pytorch/tutorials
Commit Name: 9d5c022d00ae5b0e4e864e951b67f729cdfa14ce
Time: 2019-10-09
Author: zou3519@gmail.com
File Name: intermediate_source/named_tensor_tutorial.py
Class Name:
Method Name:
Project Name: pytorch/tutorials
Commit Name: ce58d5904c04c4be10561447e41a153f573a3f93
Time: 2020-12-03
Author: qasdfgtyuiop@gmail.com
File Name: beginner_source/examples_nn/dynamic_net.py
Class Name:
Method Name: