Skip to content

Commit

Permalink
Relax Vector eltype specialization in rand_tangent
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Nov 9, 2023
1 parent 27b412a commit 6897403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/TenetChainRulesTestUtilsExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ using Random

function ChainRulesTestUtils.rand_tangent(rng::AbstractRNG, x::T) where {T<:AbstractTensorNetwork}
return Tangent{T}(

Check warning on line 10 in ext/TenetChainRulesTestUtilsExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/TenetChainRulesTestUtilsExt.jl#L10

Added line #L10 was not covered by tests
tensormap = [ProjectTo(tensor)(rand_tangent.(Ref(rng), tensor)) for tensor in tensors(x)],
tensormap = Tensor[ProjectTo(tensor)(rand_tangent.(Ref(rng), tensor)) for tensor in tensors(x)],
indexmap = NoTangent(),
)
end
Expand Down

0 comments on commit 6897403

Please sign in to comment.