Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
6
class
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
copy
Function · 0.50
test_identity
Function · 0.50
Calls
no outgoing calls
Tested by
1
test_identity
Function · 0.40