MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / Identity

Class Identity

imperative/python/megengine/module/identity.py:6–10  ·  view source on GitHub ↗

r"""A placeholder identity operator that will ignore any argument.

Source from the content-addressed store, hash-verified

4
5
6class Identity(Module):
7 r"""A placeholder identity operator that will ignore any argument."""
8
9 def forward(self, x):
10 return copy(x)

Callers 2

copyFunction · 0.50
test_identityFunction · 0.50

Calls

no outgoing calls

Tested by 1

test_identityFunction · 0.40