Skip to content

Commit 35ca3eb

Browse files
committed
remove unused chainrule
1 parent 5be3cb8 commit 35ca3eb

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

ext/TensorKitChainRulesCoreExt/constructors.jl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -106,18 +106,6 @@ function ChainRulesCore.rrule(
106106
return TensorKit.copy_oftype(t, T), copy_oftype_pullback
107107
end
108108

109-
function ChainRulesCore.rrule(
110-
::typeof(TensorKit.permutedcopy_oftype), t::AbstractTensorMap, T::Type{<:Number}, p::Index2Tuple
111-
)
112-
project = ProjectTo(t)
113-
function permutedcopy_oftype_pullback(Δt)
114-
invp = TensorKit._canonicalize(TupleTools.invperm(linearize(p)), t)
115-
return NoTangent(), project(TensorKit.permute(unthunk(Δt), invp)), NoTangent(),
116-
NoTangent()
117-
end
118-
return TensorKit.permutedcopy_oftype(t, T, p), permutedcopy_oftype_pullback
119-
end
120-
121109
function ChainRulesCore.rrule(::typeof(Base.convert), T::Type{<:Array}, t::AbstractTensorMap)
122110
A = convert(T, t)
123111
function convert_pullback(ΔA)

test/autodiff/ad.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ for V in spacelist
220220
test_rrule(copy, T2)
221221
test_rrule(TensorKit.copy_oftype, T1, ComplexF64)
222222
if symmetricbraiding
223-
test_rrule(TensorKit.permutedcopy_oftype, T1, ComplexF64, ((3, 1), (2, 4)))
224-
225223
test_rrule(convert, Array, T1)
226224
test_rrule(
227225
TensorMap, convert(Array, T1), codomain(T1), domain(T1);

0 commit comments

Comments
 (0)