Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Aug 8, 2024
1 parent ea02b79 commit 199c10f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Enzyme.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1417,9 +1417,9 @@ of shape `size(output)` of values of the input type.
inshape = size(x)

st = @static if VERSION >= v"1.9"
Base.stack(cols)
Base.stack(rows)
else
reshape(cat(cols..., dims=length(outshape)), (outshape..., inshape...))
reshape(cat(rows..., dims=length(outshape)), (outshape..., inshape...))
end

st2 = if length(outshape) == 1 || VERSION < v"1.9"
Expand Down Expand Up @@ -1470,9 +1470,9 @@ end
if x isa AbstractArray
inshape = size(x)
st = @static if VERSION >= v"1.9"
Base.stack(cols)
Base.stack(rows)
else
reshape(cat(cols..., dims=length(outshape)), (outshape..., inshape...))
reshape(cat(rows..., dims=length(outshape)), (outshape..., inshape...))
end

st2 = if length(outshape) == 1 || VERSION < v"1.9"
Expand Down

0 comments on commit 199c10f

Please sign in to comment.