Skip to content

Commit

Permalink
Fix parent function call in contract
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Nov 27, 2023
1 parent a60bfdf commit 56a3352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/TenetDaggerExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function Tenet.contract(

ic = setdiff(ia ib, i isa Base.AbstractVecOrTuple ? i : (i,))::Vector{Symbol}

data = Dagger._to_darray(Contract(a, ia, b, ib, ic))
data = Dagger._to_darray(Contract(parent(a), ia, parent(b), ib, ic))

return Tensor(data, ic)
end
Expand Down

0 comments on commit 56a3352

Please sign in to comment.