Skip to content

Commit

Permalink
Remove dependency on DocStringExtensions (#450)
Browse files Browse the repository at this point in the history
* Remove dependency on DocStringExtensions

* Remove from extensions
  • Loading branch information
gdalle authored Sep 5, 2024
1 parent a2793bd commit e89793f
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 14 deletions.
2 changes: 0 additions & 2 deletions DifferentiationInterface/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ version = "0.6.0"
[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
PackageExtensionCompat = "65ce6f38-6b18-4e1d-a461-8949797d7930"
Expand Down Expand Up @@ -50,7 +49,6 @@ ADTypes = "1.7.0"
ChainRulesCore = "1.23.0"
Compat = "3.46,4.2"
Diffractor = "=0.2.6"
DocStringExtensions = "0.8,0.9"
Enzyme = "0.12.35"
FastDifferentiation = "0.3.9, 0.4"
FillArrays = "1.7.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ using DifferentiationInterface:
Tangents,
SingleTangent,
pick_batchsize
using DocStringExtensions
using Enzyme:
Active,
Annotation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ using DifferentiationInterface:
PushforwardExtras,
SecondDerivativeExtras,
Tangents
using DocStringExtensions
using LinearAlgebra: mul!
using PolyesterForwardDiff: threaded_gradient!, threaded_jacobian!
using PolyesterForwardDiff.ForwardDiff: Chunk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ using DifferentiationInterface:
Tangents
using FillArrays: OneElement
using ReverseDiff.DiffResults: DiffResults, DiffResult, GradientResult, MutableDiffResult
using DocStringExtensions
using LinearAlgebra: dot, mul!
using ReverseDiff:
CompiledGradient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ using DifferentiationInterface:
NoPullbackExtras,
PullbackExtras,
Tangents
using DocStringExtensions
using ForwardDiff: ForwardDiff
using Zygote:
ZygoteRuleConfig, gradient, hessian, jacobian, pullback, withgradient, withjacobian
Expand Down
5 changes: 0 additions & 5 deletions DifferentiationInterface/src/DifferentiationInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
DifferentiationInterface
An interface to various automatic differentiation backends in Julia.
# Exports
$(EXPORTS)
"""
module DifferentiationInterface

Expand Down Expand Up @@ -34,7 +30,6 @@ using ADTypes:
AutoTracker,
AutoZygote
using Compat
using DocStringExtensions
using FillArrays: OneElement
using LinearAlgebra: Symmetric, Transpose, dot, parent, transpose
using PackageExtensionCompat: @require_extensions
Expand Down
5 changes: 2 additions & 3 deletions DifferentiationInterface/src/second_order/second_order.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ Combination of two backends for second-order differentiation.
# Fields
$(TYPEDFIELDS)
- `outer::AbstractADType`: backend for the outer differentiation
- `inner::AbstractADType`: backend for the inner differentiation
"""
struct SecondOrder{ADO<:AbstractADType,ADI<:AbstractADType} <: AbstractADType
"backend for the outer differentiation"
outer::ADO
"backend for the inner differentiation"
inner::ADI
end

Expand Down

0 comments on commit e89793f

Please sign in to comment.