Skip to content
Draft
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
4 changes: 3 additions & 1 deletion test/downstream/observables_autodiff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ end
end
@test count(!iszero, gp_ref) == 1
@test only(filter(!iszero, gp_ref)) == 1.0
@test _unwrap_grad(gs).prob.fields.p.fields.tunable ≈ gp_ref
gp = _unwrap_grad(gs).prob.fields.p
gp = hasproperty(gp.fields, :params) ? gp.fields.params : gp
@test gp.fields.tunable ≈ gp_ref
end
end
end
Expand Down
Loading