Skip to content

Commit 53a6a70

Browse files
committed
small fixes
1 parent fb23763 commit 53a6a70

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/implementation/blascontract.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ function _blas_contract!(C, A, pA, B, pB, pAB, α, β, backend, allocator)
6060
tensoradd!(C, C_, pAB, false, α, β, backend, allocator)
6161
tensorfree!(C_, allocator)
6262
end
63-
flagA || tensorfree!(A_.parent, allocator)
64-
flagB || tensorfree!(B_.parent, allocator)
63+
flagA || tensorfree!(A_, allocator)
64+
flagB || tensorfree!(B_, allocator)
6565
return C
6666
end
6767

src/implementation/strided.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ Additionally, we normalize the parent types to avoid having to have too many spe
5050
This is allowed because we never return `parent(SV)`, so we can safely wrap anything
5151
that represents the same data.
5252
"""
53-
wrap_stridedview(A::AbstractArray) = StridedView(reshape(A, length(A)),
54-
size(A), strides(A), 0, identity)
55-
wrap_stridedview(A::StridedView) = A
53+
wrap_stridedview(A::AbstractArray) = StridedView(A)
5654
@static if isdefined(Core, :Memory)
5755
# For Arrays: we simply use the memory directly
5856
# TODO: can we also do this for views?

0 commit comments

Comments
 (0)