Replace asserts with ValueErrors (#5275)
* replace assert with valueerror * pytest should raise ValueError not AssertionError * minor edit * raise assert changed to raise valueerror in test * Update torchvision/models/detection/backbone_utils.py Co-authored-by:Aditya Oke <47158509+oke-aditya@users.noreply.github.com> * Update torchvision/models/detection/backbone_utils.py Co-authored-by:
Aditya Oke <47158509+oke-aditya@users.noreply.github.com> * minor edits * minor edits * added one test * added another test * added another test * test for mobilenet * ufmt formatting * cant have unused variables * suggested changes * minor edit * corrected bug pointed out by datumbox * corrected bug pointed out by datumbox * bug correction and shorten msg * ufmt stuff * resolved last comment Co-authored-by:
Abhijit Deo <72816663+abhi-glitchhg@users.noreply.github.com> Co-authored-by:
Aditya Oke <47158509+oke-aditya@users.noreply.github.com> Co-authored-by:
Vasilis Vryniotis <datumbox@users.noreply.github.com>
Showing
Please register or sign in to comment