Skip to content

Commit

Permalink
Refactoring to remove unused variable (#125252)
Browse files Browse the repository at this point in the history
Summary: Removed unused variable for running encoder

Test Plan: buck test //caffe2/test:transformers

Differential Revision: D56771972

Pull Request resolved: #125252
Approved by: https://github.com/drisspg
  • Loading branch information
jainapurva authored and pytorchmergebot committed May 1, 2024
1 parent e09f98c commit b094622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def test_train_with_pad_and_catch_error(self, device):
# Expect uint8 type not supported
ex = None
try:
test_train_uint8 = encoder(test, src_key_padding_mask=pad_mask.to(torch.uint8))
encoder(test, src_key_padding_mask=pad_mask.to(torch.uint8))
except AssertionError as e:
continue
self.assertFalse(e, "Failed to catch unsupported uint8 type exception") # noqa: F821
Expand Down

1 comment on commit b094622

@pytorchmergebot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted #125252 on behalf of https://github.com/drisspg due to going to land codev (comment)

Please sign in to comment.