Skip to content

Commit

Permalink
comment unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
supercoderhawk committed Jan 17, 2020
1 parent 5faae3f commit bf1e73c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wsdm_digg/reranking/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def train_func(self):
accumulate_step += 1

# torch.nn.utils.clip_grad_value_(model.parameters(), 0.01)
stop_scheduler_step = self.args.scheduler_step * 8
# stop_scheduler_step = self.args.scheduler_step * 8
if accumulate_step % self.args.gradient_accumulate_step == 0:
optimizer.step()
optimizer.zero_grad()
Expand Down

0 comments on commit bf1e73c

Please sign in to comment.