-
SelectAdaptivePool2d does not fail explicitly when the pooling type is not supported. This can lead to awkward situation where a typo leads to an unexpected type of pooling.
Was this design intended ? |
Beta Was this translation helpful? Give feedback.
Answered by
rwightman
Apr 30, 2024
Replies: 1 comment 1 reply
-
@hugoWR I suppose it could be worth updating that old logic. Two things could be added, an |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hugoWR
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@hugoWR I suppose it could be worth updating that old logic. Two things could be added, an
assert pool_type == 'avg', '...
in the else and apool_type = pool_type.lower()
before the if block is probably worthwhile.