提交 31f3aedf authored 作者: Brandon T. Willard's avatar Brandon T. Willard

Rename debugger_available to test_values_enabled in BatchedDot

上级 f17a8cde
...@@ -2493,16 +2493,16 @@ class BatchedDot(Op): ...@@ -2493,16 +2493,16 @@ class BatchedDot(Op):
if eval_points[0] is None and eval_points[1] is None: if eval_points[0] is None and eval_points[1] is None:
return [None] return [None]
debugger_available = config.compute_test_value != "off" test_values_enabled = config.compute_test_value != "off"
if debugger_available: if test_values_enabled:
try: try:
iv0 = theano.gof.op.get_test_value(inputs[0]) iv0 = theano.gof.op.get_test_value(inputs[0])
except TestValueError: except TestValueError:
theano.gof.op.missing_test_message( theano.gof.op.missing_test_message(
"first input passed to BatchedDot.R_op has no test value" "first input passed to BatchedDot.R_op has no test value"
) )
debugger_available = False test_values_enabled = False
try: try:
iv1 = theano.gof.op.get_test_value(inputs[1]) iv1 = theano.gof.op.get_test_value(inputs[1])
...@@ -2510,7 +2510,7 @@ class BatchedDot(Op): ...@@ -2510,7 +2510,7 @@ class BatchedDot(Op):
theano.gof.op.missing_test_message( theano.gof.op.missing_test_message(
"second input passed to BatchedDot.R_op has no test value" "second input passed to BatchedDot.R_op has no test value"
) )
debugger_available = False test_values_enabled = False
if eval_points[0]: if eval_points[0]:
try: try:
...@@ -2520,7 +2520,7 @@ class BatchedDot(Op): ...@@ -2520,7 +2520,7 @@ class BatchedDot(Op):
"first eval point passed to BatchedDot.R_op " "first eval point passed to BatchedDot.R_op "
"has no test value" "has no test value"
) )
debugger_available = False test_values_enabled = False
if eval_points[1]: if eval_points[1]:
try: try:
ev1 = theano.gof.op.get_test_value(eval_points[1]) ev1 = theano.gof.op.get_test_value(eval_points[1])
...@@ -2529,9 +2529,9 @@ class BatchedDot(Op): ...@@ -2529,9 +2529,9 @@ class BatchedDot(Op):
"second eval point passed to BatchedDot.R_op " "second eval point passed to BatchedDot.R_op "
"has no test value" "has no test value"
) )
debugger_available = False test_values_enabled = False
if debugger_available: if test_values_enabled:
input_values = [iv0, iv1] input_values = [iv0, iv1]
eval_point_values = [ev0, ev1] eval_point_values = [ev0, ev1]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论