Skip to content

Commit

Permalink
Add function, test=develop
Browse files Browse the repository at this point in the history
  • Loading branch information
zhhsplendid committed Sep 21, 2020
1 parent 88031aa commit ea2ad88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _create_bool_op_node(self, nodes, api_type):
nodes = [pre_logic_node] + [post_logic_node]

args = [ast_to_source_code(child) for child in nodes]
new_node_str = "fluid.dygraph.dygraph_to_static.convert_operators.convert_logical_{}(x={}, y={})".format(
new_node_str = "paddle.jit.dygraph_to_static.convert_operators.convert_logical_{}(x={}, y={})".format(
api_type, args[0], args[1])
# NOTE: gast.parse return Module(body=[expr(...)])
new_node = gast.parse(new_node_str).body[0].value
Expand Down

0 comments on commit ea2ad88

Please sign in to comment.