We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
They are caused by EnzymeAD/Enzyme.jl#1354, because we define our array-to-scalar scenarios as:
f_vector_scalar(x::AbstractVector)::Number = sum(sin, x) f_matrix_scalar(x::AbstractMatrix)::Number = sum(sin, x)
If instead we do the following, problem solved, but it allocates:
f_vector_scalar(x::AbstractVector)::Number = sum(sin.(x)) f_matrix_scalar(x::AbstractMatrix)::Number = sum(sin.(x))
We need scalar-valued functions which
My suggestion would be
function f_vector_scalar(x::AbstractVector)::Number s = zero(eltype(x)) for i in eachindex(x) s += sin(i * x[i]) end return s end
but it causes JuliaDiff/Diffractor.jl#280
The text was updated successfully, but these errors were encountered:
Disappeared for now because we're no longer testing that specific combination
Sorry, something went wrong.
No branches or pull requests
They are caused by EnzymeAD/Enzyme.jl#1354, because we define our array-to-scalar scenarios as:
If instead we do the following, problem solved, but it allocates:
We need scalar-valued functions which
My suggestion would be
but it causes JuliaDiff/Diffractor.jl#280
The text was updated successfully, but these errors were encountered: