Skip to content

Commit 092d59c

Browse files
committed
address review comments
Signed-off-by: Farhan Ahmed <[email protected]>
1 parent a87de7c commit 092d59c

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

run_tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ then
3737
pytest --cov-report=xml --cov=art --cov-append -q -vv tests/preprocessing/audio --framework=$framework --durations=0
3838
if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed preprocessing/audio tests"; fi
3939

40+
pytest --cov-report=xml --cov=art --cov-append -q -vv tests/preprocessing/image --framework=$framework --durations=0
41+
if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed preprocessing/image tests"; fi
42+
4043
pytest --cov-report=xml --cov=art --cov-append -q -vv tests/preprocessing/expectation_over_transformation --framework=$framework --durations=0
4144
if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed preprocessing/expectation_over_transformation tests"; fi
4245

tests/preprocessing/image/test_image_resize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def image_batch(channels_first, label_type):
3838
data_shape = (2, channels, height, width)
3939
else:
4040
data_shape = (2, height, width, channels)
41-
x = (0.5 * np.ones((data_shape))).astype(ART_NUMPY_DTYPE)
41+
x = (0.5 * np.ones(data_shape)).astype(ART_NUMPY_DTYPE)
4242

4343
if label_type == "classification":
4444
y = np.arange(len(x))

tests/preprocessing/image/test_image_square_pad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def image_batch(height, width, channels_first, label_type):
3535
data_shape = (2, channels, height, width)
3636
else:
3737
data_shape = (2, height, width, channels)
38-
x = (0.5 * np.ones((data_shape))).astype(ART_NUMPY_DTYPE)
38+
x = (0.5 * np.ones(data_shape)).astype(ART_NUMPY_DTYPE)
3939

4040
if label_type == "classification":
4141
y = np.arange(len(x))

0 commit comments

Comments
 (0)