Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Disable grad in eval.
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesq34 authored Oct 2, 2019
1 parent 237f6ff commit ab98883
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ def evaluate_one_epoch():

# Forward pass
inputs = {'point_clouds': batch_data_label['point_clouds']}
end_points = net(inputs)
with torch.no_grad():
end_points = net(inputs)

# Compute loss
for key in batch_data_label:
Expand Down

0 comments on commit ab98883

Please sign in to comment.