Skip to content

Commit

Permalink
Remove call to clone state
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomlago committed Jan 11, 2025
1 parent 2ce28be commit c42a1ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/brevitas/graph/test_equalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,8 @@ def test_apply_rotate(
generator = torch.Generator()
generator.manual_seed(SEED)
# Clone generator to make sure we can use the same rotation matrices
generator_clone = generator.clone_state()
generator_clone = torch.Generator()
generator_clone.set_state(generator.get_state())

# Apply rotations on the model with unfused rotations
regions_unfused = list(
Expand Down

0 comments on commit c42a1ed

Please sign in to comment.