We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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_functional
pytest.approx
https://github.com/NickleDave/vak/runs/5525156504?check_suite_focus=true
=================================== FAILURES =================================== _________________________________ test_onehot __________________________________ def test_onehot(): num_classes = 4 labels = torch.zeros(2, 2, 1, dtype=torch.int64) labels[0, 0, 0] = 0 labels[0, 1, 0] = 1 labels[1, 0, 0] = 2 labels[1, 1, 0] = 3 # convert labels to one hot tensor one_hot = F.one_hot(labels, num_classes) > assert pytest.approx(one_hot[0, labels[0, 0, 0], 0, 0].item(), 1.0) E AssertionError: approx() is not supported in a boolean context. E Did you mean: `assert a == approx(b)`? tests/test_nn/test_functional.py:20: AssertionError
The text was updated successfully, but these errors were encountered:
Apparently because of this change: pytest-dev/pytest#9061
This is what I get for not pinning my dev/test requirements
Sorry, something went wrong.
9c04459
Merge pull request #465 from NickleDave/fix-test-functional-fixes-#464
4599740
Fix `test_functional`, fixes #464
NickleDave
No branches or pull requests
https://github.com/NickleDave/vak/runs/5525156504?check_suite_focus=true
The text was updated successfully, but these errors were encountered: