Skip to content

Commit d68b2e8

Browse files
committed
+ -> hcat (was a typo\!)
1 parent 8368761 commit d68b2e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/build_function2.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ end
1818

1919
function build_nn_function(eq::EqT, sparams::NeuralNetworkParameters, sinput::Symbolics.Arr, soutput::Symbolics.Arr)
2020
gen_fun = _build_nn_function(eq, sparams, sinput, soutput)
21-
gen_fun_returned(input, output, ps) = mapreduce(k -> gen_fun(input, output, ps, k), +, axes(input, 2))
21+
gen_fun_returned(input, output, ps) = mapreduce(k -> gen_fun(input, output, ps, k), hcat, axes(input, 2))
2222
function gen_fun_returned(x::AT, y::AT, ps) where {AT <: Union{AbstractVector, Symbolics.Arr}}
2323
output_not_reshaped = gen_fun_returned(reshape(x, length(x), 1), reshape(y, length(y), 1), ps)
2424
# for vectors we do not reshape, as the output may be a matrix

0 commit comments

Comments
 (0)