-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Identity OP #34420
Add Identity OP #34420
Conversation
Thanks for your contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
class Identity(Layer): | ||
r""" | ||
|
||
A placeholder identity operator that is argument-insensitive. For each input :math:`X` , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
只支持一个输入,一个输出吧。
这里用for each
,感觉是支持多个输入的。
PR types
New features
PR changes
OPs
Describe
Add Identity op which have the same functionality as torch.nn.Identity, if we define the "m" as the identity layer, it creates following results.