Skip to content

Commit c1285c7

Browse files
committed
fix Dagger build funcition if spvec
1 parent 4c94c30 commit c1285c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/build_function.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,8 @@ function _build_function(target::JuliaTarget, rhss, args...;
376376
dagwrap(ex::Expr) = dagwrap(ex, Val(ex.head))
377377
dagwrap(ex::Expr, ::Val) = ex
378378
dagwrap(ex::Expr, ::Val{:call}) = :(Dagger.delayed($(ex.args[1]))($(dagwrap.(ex.args[2:end])...)))
379-
new_rhss = dagwrap.(conv.(rhss))
379+
380+
new_rhss = dagwrap.(conv.(Array(rhss)))
380381
delayed_exprs = build_expr(:block, [:($(Symbol(computevars[i])) = Dagger.delayed(identity)($(new_rhss[i]))) for i in axes(computevars,1)])
381382
# TODO: treereduce?
382383
reduce_expr = quote

0 commit comments

Comments
 (0)