models w/ multiple inputs yield a tuple for .input_shape

This commit is contained in:
Robert Sachunsky 2026-06-12 14:55:46 +02:00
parent 08946067ac
commit 45c92eada2
2 changed files with 4 additions and 2 deletions

View file

@ -23,6 +23,7 @@ def test_cnnrnnocr1(
model = model_zoo.get('ocr')
assert isinstance(model, Predictor)
shape = model.input_shape
assert len(shape) == 4
assert len(shape) == 2
assert len(shape[0]) == 4
except ImportError:
pass