Skip to content

Commit

Permalink
Update benchmark_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sxjscience committed Aug 11, 2020
1 parent 9bbc581 commit 9238d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/benchmarks/benchmark_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ def train_step():
def train_step():
with mxnet.autograd.record():
contextual_embedding, pooled_out = model(input_ids, valid_length,
input_ids, valid_length)
input_ids, valid_length)
fake_loss = (contextual_embedding * contextual_embedding_ograd).sum() \
+ (pooled_out * pooled_out_ograd).sum()
fake_loss.backward()
Expand Down

0 comments on commit 9238d56

Please sign in to comment.