MCPcopy
hub / github.com/facebookresearch/mmf / _get_config

Method _get_config

tests/tasks/test_processors.py:15–20  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

13
14class TestTaskProcessors(unittest.TestCase):
15 def _get_config(self, path):
16 path = os.path.join(os.path.abspath(__file__), path)
17 with open(os.path.abspath(path)) as f:
18 config = yaml.load(f, Loader=yaml.FullLoader)
19 config = ConfigNode(config)
20 return config
21
22 def test_caption_processor(self):
23 config = self._get_config(

Calls 2

ConfigNodeClass · 0.90
loadMethod · 0.45

Tested by

no test coverage detected