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

Method map

axlearn/common/input_grain_test.py:48–49  ·  view source on GitHub ↗
(self, element: int)

Source from the content-addressed store, hash-verified

46
47class _PlusOne(grain.MapTransform):
48 def map(self, element: int) -> int:
49 return element + 1
50
51
52class UtilsTest(TestCase):

Callers 15

report_fnFunction · 0.80
download_job_batchFunction · 0.80
_gc_jobsMethod · 0.80
sourceMethod · 0.80
fnFunction · 0.80
_build_tfds_iteratorFunction · 0.80
_asr_text_datasetFunction · 0.80
dataset_fnFunction · 0.80
fnFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected