Skip to content

Commit c24e725

Browse files
committed
copy stack trace
1 parent 67390dc commit c24e725

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pytensor/tensor/rewriting/math.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ def local_log_sqrt(fgraph, node):
568568
new_out = mul(0.5, log(x))
569569
if new_out.dtype != old_out.dtype:
570570
new_out = cast(new_out, old_out.dtype)
571+
copy_stack_trace(node.out, new_out)
571572
return [new_out]
572573

573574

0 commit comments

Comments
 (0)