Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Follow-ups from initial mypy PR (facebookresearch#25)
Summary: Pull Request resolved: facebookresearch#25 A couple follow-ups from facebookresearch#22: - Add TODO for type checking FLAVA code - Add a couple other type hints missed by mypy in clip_text_encoder (due to https://mypy.readthedocs.io/en/stable/common_issues.html#no-errors-reported-for-obviously-wrong-code) - Some changes to weighted_embedding_encoder to silence mypy errors Test Plan: ``` $ python -m pytest -v ... ====================================================================================== short test summary info ======================================================================================= FAILED test/transforms/test_clip_transform.py::TestCLIPTransform::test_clip_multi_transform - requests.exceptions.MissingSchema: Invalid URL '/data/home/ebs/torchmultimodal/torchmultimodal/test/a... FAILED test/transforms/test_clip_transform.py::TestCLIPTransform::test_clip_single_transform - requests.exceptions.MissingSchema: Invalid URL '/data/home/ebs/torchmultimodal/torchmultimodal/test/... ================================================================== 2 failed, 48 passed, 3 skipped, 26 warnings in 76.48s (0:01:16) =================================================================== ``` (Failures are pre-existing and will be fixed with a separate commit) ``` $ mypy Success: no issues found in 29 source files ``` Reviewed By: langong347 Differential Revision: D35617460 Pulled By: ebsmothers fbshipit-source-id: ab2bf0ec7f85fa700287787728aa40443b9c7a0c
- Loading branch information