MCPcopy Create free account
hub / github.com/huggingface/transformers / setUp

Method setUp

tests/test_modeling_bart.py:128–130  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

126 test_missing_keys = False # because BartForConditionalGeneration and BartModel now have identical state_dict
127
128 def setUp(self):
129 self.model_tester = ModelTester(self)
130 self.config_tester = ConfigTester(self, config_class=BartConfig)
131
132 def test_config(self):
133 self.config_tester.run_common_tests()

Callers

nothing calls this directly

Calls 2

ModelTesterClass · 0.85
ConfigTesterClass · 0.85

Tested by

no test coverage detected