@@ -46,7 +46,7 @@ _pointer(A) = nothing # compares == self
46
46
47
47
@inline function (s:: ZBack )(dy:: NoWrite )
48
48
ptr_orig = _pointer (dy. data)
49
- @debug " unwrapping for chainrules" summary (dy. data) ptr s. back
49
+ # @debug "unwrapping for chainrules" summary(dy.data) ptr s.back
50
50
dxs = wrap_chainrules_output (s. back (wrap_chainrules_input (dy. data)))
51
51
dxs === nothing && return
52
52
ptrs = map (_pointer, dxs)
@@ -55,10 +55,10 @@ _pointer(A) = nothing # compares == self
55
55
if ptr === nothing
56
56
dx
57
57
elseif ptr == ptr_orig
58
- @debug " re-wrapping for chainrules" summary (dy. data) ptr
58
+ # @debug "re-wrapping for chainrules" summary(dy.data) ptr
59
59
_protect (dx)
60
60
elseif count (isequal (ptr), ptrs) > 1
61
- @debug " wrapping for chainrules" summary (dy. data) ptr
61
+ # @debug "wrapping for chainrules" summary(dy.data) ptr
62
62
_protect (dx)
63
63
else
64
64
dx
@@ -98,7 +98,7 @@ LinearAlgebra.generic_matvecmul!(C::AbstractVector, tA, A::AbstractVecOrMat, B::
98
98
LinearAlgebra. generic_matvecmul! (C:: AbstractVector , tA, A:: NoWriteVecOrMat , B:: NoWriteVector , _add:: LinearAlgebra.MulAddMul ) = _mulv (C, tA, A, B, _add)
99
99
100
100
function _mulv (C, tA, A, B, _add)
101
- @debug " generic matrix-vector due to NoWrite" summary (A) summary (B)
101
+ # @debug "generic matrix-vector due to NoWrite" summary(A) summary(B)
102
102
invoke (LinearAlgebra. generic_matvecmul!, Tuple{AbstractVector, Any, AbstractVecOrMat, AbstractVector, LinearAlgebra. MulAddMul}, C, tA, A, B, _add)
103
103
end
104
104
@@ -107,7 +107,7 @@ LinearAlgebra.generic_matmatmul!(C::AbstractMatrix, tA, A::AbstractMatrix, B::No
107
107
LinearAlgebra. generic_matmatmul! (C:: AbstractMatrix , tA, A:: NoWriteMatrix , B:: NoWriteMatrix , _add:: LinearAlgebra.MulAddMul ) = _mulm (C, tA, A, B, _add)
108
108
109
109
function _mulm (C, tA, A, B, _add)
110
- @debug " generic matrix-matrix multiplication due to NoWrite" summary (A) summary (B)
110
+ # @debug "generic matrix-matrix multiplication due to NoWrite" summary(A) summary(B)
111
111
invoke (LinearAlgebra. generic_matmatmul!, Tuple{AbstractMatrix, Any, AbstractMatrix, AbstractMatrix, LinearAlgebra. MulAddMul}, C, tA, A, B, _add)
112
112
end
113
113
0 commit comments