Skip to content

SelectAdaptivePool2d does not fail explicitly #2159

Answered by rwightman
hugoWR asked this question in Q&A
Discussion options

You must be logged in to vote

@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 a pool_type = pool_type.lower() before the if block is probably worthwhile.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hugoWR
Comment options

Answer selected by hugoWR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants