Skip to content

Commit ca8948f

Browse files
generatedunixname499836121meta-codesync[bot]
authored andcommitted
Enable PLC1802 on ruff (#165813)
Summary: This PR enables ruff check `PLC1802`, which detects len calls on sequences in a boolean test context. X-link: pytorch/pytorch#165813 Approved by: https://github.com/ezyang Reviewed By: clee2000 Differential Revision: D84996241 fbshipit-source-id: 30f37fe70763bf55b699231f64d515c5352a25e8
1 parent af99bc5 commit ca8948f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

userbenchmark/dynamo/dynamobench/huggingface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def process_hf_reformer_output(out):
124124
continue
125125
batch_size = int(batch_size)
126126
BATCH_SIZE_KNOWN_MODELS[model_name] = batch_size
127-
assert len(BATCH_SIZE_KNOWN_MODELS)
127+
assert BATCH_SIZE_KNOWN_MODELS
128128

129129

130130
try:

0 commit comments

Comments
 (0)