Revision 2379d0c2379b214b5742e9c39759d509230a9aa7 authored by Ronghang Hu on 03 April 2021, 08:52:39 UTC, committed by Facebook GitHub Bot on 03 April 2021, 08:53:24 UTC
Summary:
Call `update_registry_for_model` to datamodules to register e.g. answer
num. Fix https://github.com/facebookresearch/mmf/issues/847.

Pull Request resolved: https://github.com/facebookresearch/mmf/pull/851

Test Plan: tested locally with M4C and M4C-Captioner

Reviewed By: apsdehal

Differential Revision: D27553712

Pulled By: ronghanghu

fbshipit-source-id: 7e5a4092658e8240ad615b0601cdf40d393453fb
1 parent 7828606
Raw File
pyproject.toml
[tool.isort]
# This is required to make sorting same as fbcode as all absolute imports
# are considered third party there
known_third_party = [
    "PIL", "cv2", "demjson", "fairscale", "filelock", "h5py", "lib", "lmdb", "maskrcnn_benchmark", "matplotlib",
    "mmf", "mmf_cli", "numpy", "omegaconf", "packaging", "pycocoevalcap", "pytorch_sphinx_theme",
    "recommonmark", "requests", "setuptools", "sklearn", "termcolor", "tests", "torch",
    "torchtext", "torchvision", "tqdm", "transformers", "pytorch_lightning"
]
skip_glob = "**/build/**,website/**,**/fb/**"
combine_as_imports = true
force_grid_wrap = false
include_trailing_comma = true
line_length = 88
multi_line_output = 3
use_parentheses = true
lines_after_imports = 2

[tool.black]
line-length = 88
exclude = '''
/(
    \.git
  | \.hg
  | \.mypy_cache
  | \.tox
  | \.venv
  | _build
  | buck-out
  | build
  | dist
  | website
  | .*\/fb\/.*
)/
'''
back to top