-
Notifications
You must be signed in to change notification settings - Fork 8
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
support var op convert #81
Conversation
…neflow_convert into dev_support_var_op_convert
"Mul", [sub_v, sub_v], op_name_scope=node.name, name="mul", dtypes=dtypes | ||
) | ||
sqr_sub = mul_node.output_tensor_names[0] | ||
if unbiased == 1: |
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.
这个correction是不是等价于unbiased,这里是否需要correction这个变量?
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.
是的,unbiased=True等价于correction==1(correction去掉或保留都行
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.
那去掉简化一下吧
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.
已修改
input_shape = ctx.get_shape(node.input_tensor_names[0]) | ||
keepdim_mean = 0 if origin_dim is None else keepdim | ||
correction = 0 | ||
|
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.
空行多了,可以refine一下格式,后面有空我在ci加一个格式化。
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.
已修改
return out | ||
|
||
|
||
def test_math_ops(): |
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.
要么把这个测试放到test_math_ops.py里,要么这里改一下名别叫MathOpxxx
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.
已修改
No description provided.