diff --git a/doc/design/if_else_op.md b/doc/design/if_else_op.md index daba92248eaddcf620299bec488930c4997b6f46..7370c2a24fa644a64e738f202bac9b9209642e08 100644 --- a/doc/design/if_else_op.md +++ b/doc/design/if_else_op.md @@ -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) @@ -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) @@ -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)