Skip to content
New issue

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

Remove unecessary shows #1139

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions test/kwrrules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import .EnzymeRules: augmented_primal, reverse
using .EnzymeRules

function augmented_primal(config::ConfigWidth{1}, func::Const{typeof(f_kw)}, ::Type{<:Active}, x::Active; kwargs...)
@show kwargs
@assert length(overwritten(config)) == 2
if needs_primal(config)
return AugmentedReturn(func.val(x.val), nothing, nothing)
Expand All @@ -22,7 +21,6 @@ function augmented_primal(config::ConfigWidth{1}, func::Const{typeof(f_kw)}, ::T
end

function reverse(config::ConfigWidth{1}, ::Const{typeof(f_kw)}, dret::Active, tape, x::Active; kwargs...)
@show kwargs # TODO do we want them here?
@assert length(overwritten(config)) == 2
if needs_primal(config)
return (10+2*x.val*dret.val,)
Expand Down
1 change: 0 additions & 1 deletion test/rrules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ function EnzymeRules.reverse(config::ConfigWidth{1}, func::Const{typeof(cmyfunc!
y::Duplicated, x::Duplicated)
xval = tape[1]
p = pointer(xval)
@show p, seen
@assert !in(p, seen)
push!(seen, p)
return (nothing, nothing)
Expand Down
Loading