Skip to content

Conversation

datumbox
Copy link
Contributor

Originally reported by @pmeier:

The _ovewrite_value_param() method returns the wrong message.

from torchvision.models.segmentation import fcn_resnet101, FCN_ResNet101_Weights

fcn_resnet101(weights=FCN_ResNet101_Weights.DEFAULT, aux_loss=False)
ValueError: The parameter 'False' expected value True but got False instead.

Instead we should have returned the error:

ValueError: The parameter 'aux_loss' expected value True but got False instead.

This PR fixes this.

Copy link
Collaborator

@pmeier pmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks Vasilis!

@datumbox datumbox merged commit 57ae04b into pytorch:main Sep 15, 2022
@datumbox datumbox deleted the fix_error_message branch September 15, 2022 08:03
facebook-github-bot pushed a commit that referenced this pull request Sep 15, 2022
Reviewed By: jdsgomes

Differential Revision: D39543277

fbshipit-source-id: 256aa0cdafeadcfbdce48766768c8c3c0c253c32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants