Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mypy type checker error (facebookresearch#36)
Summary: Pull Request resolved: facebookresearch#36 `mil_encoder.py` was breaking mypy type checking in OSS https://github.com/facebookresearch/multimodal/runs/6311395953?check_suite_focus=true ``` Found 2 errors in 1 file (checked 31 source files) annotation for "partitioned_input" (hint: "partitioned_input: Dict[<type>, <type>] = ...") [var-annotated] partitioned_input = {} ^ torchmultimodal/modules/encoders/mil_encoder.py:93:29: error: Incompatible types in assignment (expression has type "List[Tensor]", variable has type "Dict[Any, Any]") [assignment] partitioned_input = torch.split(x, self.partition_sizes, dim=1... ``` Reviewed By: ankitade Differential Revision: D36185850 fbshipit-source-id: eb06b7f8deb8c5480f1d908d51dedbcdff80256e
- Loading branch information