MCPcopy Create free account
hub / github.com/ml-explore/mlx / pad2d

Method pad2d

python/tests/test_vmap.py:733–734  ·  view source on GitHub ↗
(x, value=0.0)

Source from the content-addressed store, hash-verified

731
732 def test_vmap_pad(self):
733 def pad2d(x, value=0.0):
734 return mx.pad(x, ((1, 2), (0, 1)), constant_values=value)
735
736 x = mx.arange(24, dtype=mx.float32).reshape(2, 3, 4)
737

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected