Skip to content

Commit 6f47bee

Browse files
committed
Revert "Sprinkle @constprop :none"
This reverts commit 72f9dd9.
1 parent 0c76cab commit 6f47bee

File tree

1 file changed

+14
-20
lines changed

1 file changed

+14
-20
lines changed

src/implementation/strided.jl

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ wrap_stridedview(A::AbstractArray) = StridedView(A)
5050
wrap_stridedview(A::Array) = StridedView(A.ref.mem, size(A), strides(A), 0, identity)
5151
end
5252

53-
Base.@constprop :none function tensoradd!(C::AbstractArray,
54-
A::AbstractArray, pA::Index2Tuple, conjA::Bool,
55-
α::Number, β::Number,
56-
backend::StridedBackend,
57-
allocator=DefaultAllocator())
53+
function tensoradd!(C::AbstractArray,
54+
A::AbstractArray, pA::Index2Tuple, conjA::Bool,
55+
α::Number, β::Number,
56+
backend::StridedBackend, allocator=DefaultAllocator())
5857
# resolve conj flags and absorb into StridedView constructor to avoid type instabilities later on
5958
if conjA
6059
stridedtensoradd!(wrap_stridedview(C), conj(wrap_stridedview(A)), pA, α, β, backend,
@@ -66,12 +65,10 @@ Base.@constprop :none function tensoradd!(C::AbstractArray,
6665
return C
6766
end
6867

69-
Base.@constprop :none function tensortrace!(C::AbstractArray,
70-
A::AbstractArray, p::Index2Tuple,
71-
q::Index2Tuple, conjA::Bool,
72-
α::Number, β::Number,
73-
backend::StridedBackend,
74-
allocator=DefaultAllocator())
68+
function tensortrace!(C::AbstractArray,
69+
A::AbstractArray, p::Index2Tuple, q::Index2Tuple, conjA::Bool,
70+
α::Number, β::Number,
71+
backend::StridedBackend, allocator=DefaultAllocator())
7572
# resolve conj flags and absorb into StridedView constructor to avoid type instabilities later on
7673
if conjA
7774
stridedtensortrace!(wrap_stridedview(C), conj(wrap_stridedview(A)), p, q, α, β,
@@ -83,15 +80,12 @@ Base.@constprop :none function tensortrace!(C::AbstractArray,
8380
return C
8481
end
8582

86-
Base.@constprop :none function tensorcontract!(C::AbstractArray,
87-
A::AbstractArray, pA::Index2Tuple,
88-
conjA::Bool,
89-
B::AbstractArray, pB::Index2Tuple,
90-
conjB::Bool,
91-
pAB::Index2Tuple,
92-
α::Number, β::Number,
93-
backend::StridedBackend,
94-
allocator=DefaultAllocator())
83+
function tensorcontract!(C::AbstractArray,
84+
A::AbstractArray, pA::Index2Tuple, conjA::Bool,
85+
B::AbstractArray, pB::Index2Tuple, conjB::Bool,
86+
pAB::Index2Tuple,
87+
α::Number, β::Number,
88+
backend::StridedBackend, allocator=DefaultAllocator())
9589
# resolve conj flags and absorb into StridedView constructor to avoid type instabilities later on
9690
if conjA && conjB
9791
stridedtensorcontract!(wrap_stridedview(C), conj(wrap_stridedview(A)), pA,

0 commit comments

Comments
 (0)