Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

creating a model with concat_pool = True creates a model that can't run on multiple tpu cores #28

Open
butchland opened this issue Feb 6, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@butchland
Copy link
Owner

Setting the concat_pool = True in cnn_learner (which is the default) creates a model that doesn't run on multiple tpu cores.

Setting it to concat_pool = False works fine however.

Based on the code, concat_pool=True uses fastai's AdaptiveConcatPool2D while setting it to False uses nn.AdaptiveAvgPool2D so it might be that using the fastai version causes a lowering or something that causes
the model to not run at all.

Workaround: set the concat_pool=False when creating the custom head for a Learner for transfer learning (e.g. cnn_learner)

@butchland butchland added the bug Something isn't working label Feb 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant