提交 20e5b721 authored 作者: Ricardo Vieira's avatar Ricardo Vieira 提交者: Ricardo Vieira

Short-circuit givens validation when it's empty

上级 2b2a7a54
...@@ -546,6 +546,7 @@ def construct_pfunc_ins_and_outs( ...@@ -546,6 +546,7 @@ def construct_pfunc_ins_and_outs(
"variables in the inputs list." "variables in the inputs list."
) )
if givens:
# Check that we are not using `givens` to replace input variables, because # Check that we are not using `givens` to replace input variables, because
# this typically does nothing, contrary to what one may expect. # this typically does nothing, contrary to what one may expect.
in_var_set = set(in_variables) in_var_set = set(in_variables)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论