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

Function pop_data_dir

axlearn/common/utils.py:1527–1528  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1525 raise ValueError(f"float dtype ({dtype}) must be one of {_supported_float_dtypes}.")
1526
1527
1528def partial_with_fn_metadata(fn, *args, **kwargs):
1529 """Wraps a function with functools.partial, retaining original function's metadata."""
1530 partial_fn = functools.partial(fn, *args, **kwargs)
1531 return functools.update_wrapper(partial_fn, fn)

Callers 2

tearDownMethod · 0.90
set_data_dirFunction · 0.85

Calls

no outgoing calls

Tested by 1

tearDownMethod · 0.72