Skip to content

Commit 838729a

Browse files
[SOT] Optimize reason string (PaddlePaddle#71763)
--------- Co-authored-by: Nyakku Shigure <sigure.qaq@gmail.com>
1 parent 8b1d3e4 commit 838729a

File tree

1 file changed

+3
-1
lines changed
  • python/paddle/jit/sot/opcode_translator/executor/variables

1 file changed

+3
-1
lines changed

python/paddle/jit/sot/opcode_translator/executor/variables/callable.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,9 @@ def __init__(
369369
def call_function(self, /, *args, **kwargs):
370370
if is_break_graph_tensor_methods(self.method_name):
371371
raise BreakGraphError(
372-
DataDependencyOperationBreak("call break_graph_tensor_method.")
372+
DataDependencyOperationBreak(
373+
f"Calling `Tensor.{self.method_name}` causes breakgraph."
374+
)
373375
)
374376
return self.graph.call_tensor_method(self.method_name, *args, **kwargs)
375377

0 commit comments

Comments
 (0)