MCPcopy Create free account
hub / github.com/YuminosukeSato/ironkernel / _make_identity_map

Function _make_identity_map

tests/python/test_out_channel.py:9–13  ·  view source on GitHub ↗

Create a MapSpec that returns the input buffer unchanged.

(buf: Buffer)

Source from the content-addressed store, hash-verified

7
8
9def _make_identity_map(buf: Buffer):
10 """Create a MapSpec that returns the input buffer unchanged."""
11 x = kernel.arg("x")
12 spec = kernel.elementwise(x)
13 return kernel.map(spec, x=buf)
14
15
16class TestGoWithOutChannel:

Calls 3

argMethod · 0.45
elementwiseMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected