@@ -60,24 +60,24 @@ function ChainRulesCore.rrule(::typeof(⊗), A::AbstractTensorMap, B::AbstractTe
6060end
6161
6262function ChainRulesCore. rrule (
63- :: typeof (permute), tsrc:: AbstractTensorMap , p:: Index2Tuple ; copy:: Bool = false
63+ :: typeof (permute), tsrc:: AbstractTensorMap , p:: Index2Tuple ; copy:: Bool = false , kwargs ...
6464 )
6565 function permute_pullback (Δtdst)
6666 invp = TensorKit. _canonicalize (TupleTools. invperm (linearize (p)), tsrc)
67- return NoTangent (), permute (unthunk (Δtdst), invp; copy = true ), NoTangent ()
67+ return NoTangent (), permute (unthunk (Δtdst), invp; copy = true , kwargs ... ), NoTangent ()
6868 end
69- return permute (tsrc, p; copy = true ), permute_pullback
69+ return permute (tsrc, p; copy = true , kwargs ... ), permute_pullback
7070end
7171
7272function ChainRulesCore. rrule (
73- :: typeof (transpose), tsrc:: AbstractTensorMap , p:: Index2Tuple ; copy:: Bool = false
73+ :: typeof (transpose), tsrc:: AbstractTensorMap , p:: Index2Tuple ; copy:: Bool = false , kwargs ...
7474 )
7575 function transpose_pullback (Δtdst)
7676 invp = TensorKit. _canonicalize (TupleTools. invperm (linearize (p)), tsrc)
77- Δtsrc = transpose (unthunk (Δtdst), invp; copy = true )
77+ Δtsrc = transpose (unthunk (Δtdst), invp; copy = true , kwargs ... )
7878 return NoTangent (), ProjectTo (tsrc)(Δtsrc), NoTangent ()
7979 end
80- return transpose (tsrc, p; copy = true ), transpose_pullback
80+ return transpose (tsrc, p; copy = true , kwargs ... ), transpose_pullback
8181end
8282
8383function ChainRulesCore. rrule (:: typeof (tr), A:: AbstractTensorMap )
0 commit comments