Skip to content

Commit

Permalink
fix test_base_edit_model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
liuwenran committed Nov 13, 2023
1 parent 94ddcdd commit d79b80f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/test_models/test_base_models/test_base_edit_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def test_base_edit_model():

# train
log_vars = model.train_step(data, optim_wrapper)
assert model.generator.layer.weight.grad is not None
assert isinstance(log_vars['loss'], torch.Tensor)
save_loss = log_vars['loss']
log_vars = model.train_step(data, optim_wrapper)
Expand Down

0 comments on commit d79b80f

Please sign in to comment.