MCPcopy Create free account
hub / github.com/apple/axlearn / test_num_bytes

Method test_num_bytes

axlearn/common/input_text_test.py:298–301  ·  view source on GitHub ↗
(self, vocab_cfg: InstantiableConfig, newlines_replaced_with: str)

Source from the content-addressed store, hash-verified

296 ),
297 )
298 def test_num_bytes(self, vocab_cfg: InstantiableConfig, newlines_replaced_with: str):
299 if not os.path.exists(_OPT_VOCAB_FILE):
300 self.skipTest("Missing testdata.")
301 self._test_num_bytes(vocab_cfg=vocab_cfg, newlines_replaced_with=newlines_replaced_with)
302
303
304class StringsPackUnpackByteArrayTest(test_utils.TestCase):

Callers

nothing calls this directly

Calls 1

_test_num_bytesMethod · 0.95

Tested by

no test coverage detected