MCPcopy Create free account
hub / github.com/pytorch/executorch / fn

Function fn

backends/mlx/test/test_ops.py:4105–4113  ·  view source on GitHub ↗
(shape, dtype)

Source from the content-addressed store, hash-verified

4103 """
4104
4105 def fn(shape, dtype):
4106 base = (
4107 torch.rand(shape, dtype=dtype)
4108 if uniform
4109 else torch.randn(shape, dtype=dtype)
4110 )
4111 if abs:
4112 base = base.abs()
4113 return (base * scale + offset,)
4114
4115 return fn
4116

Callers 13

updateFunction · 0.85
_map_valuesFunction · 0.85
_combine_valuesFunction · 0.85
update_features_implFunction · 0.85
test_suite_decoratorFunction · 0.85
wrapperFunction · 0.85
_capture_pass_logsFunction · 0.85
_try_benchFunction · 0.85
_apply_fn_to_dataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected