提交 d3caf011 编写于 作者: W wjj19950828

deal with comments

上级 ad15b9c1
......@@ -72,7 +72,7 @@ def prim_add_(layer,
forward_func=[],
layer_id=None,
different_attrs=None):
if layer.attrs["alpha"] == 1:
if abs(layer.attrs["alpha"] - 1.) < 1e-6:
line = "{} = {} + {}".format(layer.outputs[0],
get_value(layer, "x", different_attrs),
get_value(layer, "y", different_attrs))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册