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

Test failures when installed from source #18

Open
kmarathe10 opened this issue May 19, 2020 · 0 comments
Open

Test failures when installed from source #18

kmarathe10 opened this issue May 19, 2020 · 0 comments

Comments

@kmarathe10
Copy link

kmarathe10 commented May 19, 2020

When I clone the master and run as per instructions here: https://mmf.readthedocs.io/en/latest/notes/installation.html

I see following test failures with pytest:

======================== short test summary info ========================
FAILED tests/modules/test_layers.py::TestModuleLayers::test_bert_classifier_head
FAILED tests/modules/test_layers.py::TestModuleLayers::test_mlp - Asse...
FAILED tests/utils/test_checkpoint.py::TestUtilsCheckpoint::test_save_and_load_state_dict

For test_checkpoint.py: E RuntimeError: Expected object of device type cuda but got device type cpu for argument #2 'other' in call to _th_equal
For other cases, I see errors like this:

>           output.squeeze().tolist(), [0.5452202, -0.0437842, -0.377468], decimal=3
        )
E       AssertionError: 
E       Arrays are not almost equal to 3 decimals
E       
E       Mismatched elements: 3 / 3 (100%)
E       Max absolute difference: 0.45450824
E       Max relative difference: 10.38064516
E        x: array([ 0.741,  0.411, -0.254])
E        y: array([ 0.545, -0.044, -0.377])

tests/modules/test_layers.py:114: AssertionError
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

No branches or pull requests

1 participant