Skip to content

Commit

Permalink
if else slight modify
Browse files Browse the repository at this point in the history
  • Loading branch information
zchen0211 committed Sep 3, 2017
1 parent 523eb23 commit e0c27a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/design/if_else_op.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ x = var()
y = var()
cond = var()

b = pd.create_ifop_builder(inputs=[x], output_num=1)
b = pd.create_ifop(inputs=[x], output_num=1)
with b.true_block():
x = b.inputs(0)
z = operator.add(x, y)
Expand All @@ -25,7 +25,7 @@ x = var()
y = var()
cond = var()
default_value = var()
b = pd.create_ifelseop_builder(inputs=[x], output_num=1)
b = pd.create_ifelseop(inputs=[x], output_num=1)
with b.true_block():
x = b.inputs(0)
z = operator.add(x, y)
Expand All @@ -47,7 +47,7 @@ x = var()
y = var()
cond = var()
default_value = var()
b = pd.create_ifelseop_builder(inputs=[x], output_num=1, default_value)
b = pd.create_ifelseop(inputs=[x], output_num=1, default_value)

with b.true_block():
x = b.inputs(0)
Expand Down

0 comments on commit e0c27a9

Please sign in to comment.