Skip to content

Commit 129f778

Browse files
committed
Autofix
1 parent 45622d4 commit 129f778

File tree

4 files changed

+5
-20
lines changed

4 files changed

+5
-20
lines changed

tests/apps/detection/networks/test_retinanet.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,11 @@
9191
MODEL_LIST = [resnet10, resnet18, resnet34, resnet50, resnet101, resnet152, resnet200]
9292

9393
TEST_CASES = []
94-
for params in dict_product(
95-
model=MODEL_LIST,
96-
case=CASE_LIST,
97-
):
94+
for params in dict_product(model=MODEL_LIST, case=CASE_LIST):
9895
TEST_CASES.append([params["model"], *params["case"]])
9996

10097
TEST_CASES_TS = []
101-
for params in dict_product(
102-
model=MODEL_LIST,
103-
case=[TEST_CASE_1],
104-
):
98+
for params in dict_product(model=MODEL_LIST, case=[TEST_CASE_1]):
10599
TEST_CASES_TS.append([params["model"], *params["case"]])
106100

107101

tests/apps/detection/test_box_transform.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@
7373
for params in dict_product(ndarray_type=TEST_NDARRAYS):
7474
p = params["ndarray_type"]
7575
TESTS_2D.append(
76-
[{"boxes": p(boxes_2d), "image": p(image_2d), "labels": p(labels_2d)},
77-
p([[[0, 2], [0, 2]], [[1, 0], [0, 0]]])]
76+
[{"boxes": p(boxes_2d), "image": p(image_2d), "labels": p(labels_2d)}, p([[[0, 2], [0, 2]], [[1, 0], [0, 0]]])]
7877
)
7978

8079
# Use dict_product for TESTS_2D_mask

tests/data/meta_tensor/test_meta_tensor.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@
3838

3939
# Replace nested loops with dict_product
4040
TESTS = []
41-
for params in dict_product(
42-
device=TEST_DEVICES,
43-
dtype=DTYPES
44-
):
41+
for params in dict_product(device=TEST_DEVICES, dtype=DTYPES):
4542
TESTS.append((*params["device"], *params["dtype"])) # type: ignore
4643

4744

tests/networks/blocks/test_patchembedding.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,7 @@
5757

5858
TEST_CASE_PATCHEMBED = []
5959
for params in dict_product(
60-
patch_size=[2],
61-
in_chans=[1, 4],
62-
img_size=[96],
63-
embed_dim=[6, 12],
64-
norm_layer=[nn.LayerNorm],
65-
nd=[2, 3],
60+
patch_size=[2], in_chans=[1, 4], img_size=[96], embed_dim=[6, 12], norm_layer=[nn.LayerNorm], nd=[2, 3]
6661
):
6762
test_case = [
6863
{

0 commit comments

Comments
 (0)