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

Function fn

axlearn/common/input_base_test.py:126–129  ·  view source on GitHub ↗
(input_batch)

Source from the content-addressed store, hash-verified

124
125 @partial(pjit, in_shardings=None)
126 def fn(input_batch):
127 output_batch = ds.dispatch_global_batch(input_batch)
128 jax.tree.map(check_sharding, tree_paths(output_batch), output_batch)
129 return output_batch
130
131 fn.lower(input_batch).compile()
132

Callers

nothing calls this directly

Calls 3

tree_pathsFunction · 0.90
dispatch_global_batchMethod · 0.80
mapMethod · 0.80

Tested by

no test coverage detected