Skip to content

Commit

Permalink
Revert "add to_vec for thunks"
Browse files Browse the repository at this point in the history
This reverts commit 5d928d8.
  • Loading branch information
Miha Zgubic committed Jun 9, 2021
1 parent 69ccf50 commit 2b3efc3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions src/to_vec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,3 @@ function FiniteDifferences.to_vec(x::AbstractZero)
end
return Bool[], AbstractZero_from_vec
end

function FiniteDifferences.to_vec(t::Thunk)
v, back = to_vec(unthunk(t))
Thunk_from_vec = v -> @thunk(back(v))
return v, Thunk_from_vec
end
4 changes: 0 additions & 4 deletions test/to_vec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,6 @@ end
test_to_vec(ZeroTangent())
test_to_vec(NoTangent())
end

@testset "Thunks" begin
test_to_vec(@thunk(3.2+4.3))
end
end

@testset "FillVector" begin
Expand Down

0 comments on commit 2b3efc3

Please sign in to comment.