From c4fcbbb22676c9a42e75a084dee0e6bd83505bb2 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 16:58:39 +0000 Subject: [PATCH] Shorten the gradient_routes docstring Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01WwC7ixq96xKm28ZGGUH98w --- src/adjoints/adjoints.jl | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/adjoints/adjoints.jl b/src/adjoints/adjoints.jl index a234adb3f..fff611223 100644 --- a/src/adjoints/adjoints.jl +++ b/src/adjoints/adjoints.jl @@ -475,16 +475,11 @@ Each route is timed through `backend` on host arrays. The first two are also timed as the rule's forward and reverse pass alone, on host arrays and on each device. -Three checks run before any time is taken, and a failed one throws. -Each `step_pullback` passes the `step` component of -[`ComposableRecurrences.PieceInterface`](@ref) at the first outputs and the -starting state. -[`ComposableRecurrences.test_adjoint`](@ref) passes where `backend` has a -method. -The gradients of the routes agree at `rtol`. - -The method is defined when `ADTypes` and `DifferentiationInterface` are -loaded. +Before any time is taken, each `step_pullback` must pass the `step` +component of [`ComposableRecurrences.PieceInterface`](@ref) and +[`ComposableRecurrences.test_adjoint`](@ref), where `backend` has a method. +The gradients of the routes must then agree at `rtol`, and a failed check +throws. # Arguments - `backend`: the AD backend, an `ADTypes` type.