Skip to content

Commit 25ec1c2

Browse files
authored
Fix contiguous_axis (#412)
* Fix contiguous_axis * Update Project.toml
1 parent 9db523e commit 25ec1c2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"
2929
VectorizationBase = "3d5dd08c-fd9d-11e8-17fa-ed2836048c2f"
3030

3131
[compat]
32-
ArrayInterface = "6.0.1 - 6.0.11"
32+
ArrayInterface = "6"
3333
ArrayInterfaceCore = "0.1.5"
34-
ArrayInterfaceOffsetArrays = "0.1.2"
34+
ArrayInterfaceOffsetArrays = "0.1"
3535
ArrayInterfaceStaticArrays = "0.1.2"
3636
CPUSummary = "0.1.3 - 0.1.8, 0.1.11"
3737
ChainRulesCore = "1"

src/broadcast.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ end
115115
end
116116
Expr(:block, Expr(:meta, :inline), staticexpr(Cnew))
117117
end
118+
function ArrayInterface.contiguous_axis(::Type{LowDimArrayForBroadcast{D,T,N,A}}) where {D,T,N,A}
119+
ArrayInterface.contiguous_axis(A)
120+
end
118121
@inline function ArrayInterface.stride_rank(
119122
::Type{LowDimArrayForBroadcast{D,T,N,A}},
120123
) where {D,T,N,A}

0 commit comments

Comments
 (0)