-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
是否需要统一Op输出的名字? #3922
Comments
这是之前的一些命名约定,对于 SigmoidOp、SoftmaxOp、OnehotCrossEntropyOp输出命名觉得可以统一为Out. |
我今天在这个 PR https://github.com/PaddlePaddle/Paddle/pull/3928/files 中遇到了一个和 @Xreki 类似的问题,希望和大家讨论。 这里来描述一下我遇到的问题:
请问:
代码出自这里: if len(args) != 1:
raise ValueError("All Paddle argument should be key-word "
"argument except type") 我们的出错提示信息有语法错误 ,并且如果是一句完整的话,还是应该加上句号,对吗? |
|
Op参数命名规则,已经在#3996 中给出了初步的定案。故关闭此issue。 |
目前,有的
Op
使用的输出的名字为Out
,比如:有的
Op
使用的输出的名字为Y
,比如:命名的不统一,使得一些组合Op写起来需要特别小心。比如
FCOp
中需要调用激活函数Op
,支持identity
,sigmoid
,softmax
类型,现在代码必须写成:鉴于有些
Op
会使用Y
作为输入,Op
的输出的名字是否需要统一为Out
?The text was updated successfully, but these errors were encountered: