Skip to content

Added OrderedDict as an output datatype #184

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SoumyadeepB
Copy link

Some pre-trained models like the deeplabv3_resnet50 returns an OrderedDict containing the semantic mask and the auxillary loss as two separate Tensors under the keys 'out' and 'aux'.

Usage of torchsummary with such models was not compatible since OrderedDict had not been considered as a potential output type.

Error thrown: 'collections.OrderedDict' object has no attribute 'size'

This issue has now been fixed.

Some pre-trained models like the deeplabv3_resnet50 returns an OrderedDict containing the semantic mask and the auxillary loss as two separate Tensors under the keys 'out' and 'aux' (https://pytorch.org/hub/pytorch_vision_deeplabv3_resnet101/). 

Usage of torchsummary with such models was not compatible since OrderedDict had not been considered as a potential output type. This issue has now been fixed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant