Skip to content

Commit d3da67e

Browse files
committed
fix bug in pt151
1 parent 311f994 commit d3da67e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/test_cores/test_metrics.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ def test_inception_download():
3030
for inception_args, metric, tar_style in zip(arg_list, metric_list,
3131
tar_style_list):
3232
model, style = load_inception(inception_args, metric)
33-
assert style == tar_style
34-
assert style == tar_style
33+
34+
if torch.__version__ < '1.6.0':
35+
assert style == 'pytorch'
36+
else:
37+
assert style == tar_style
3538

3639
args_empty = ''
3740
with pytest.raises(TypeError):

0 commit comments

Comments
 (0)