Skip to content

Commit d679737

Browse files
Update docs/DifferentiableProgrammingImplementation.md
Co-authored-by: Saleem Abdulrasool <[email protected]>
1 parent 81a2624 commit d679737

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/DifferentiableProgrammingImplementation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ Here is the pseudocode of the main logic of the differentiation transform.
831831
- If `differentiable_function` is missing JVP and VJP:
832832
- If the `differentiable_function`’s original function operand is an `differentiable_function_extract [original]` instruction, get the operand of that instruction. Do `differentiable_function_extract [jvp/vjp]` instruction from that operand to get the JVP/VJP. Continue.
833833
- Otherwise, get the "original function reference" (`function_ref`, `witness_method`, or `class_method` instruction) underlying the `differentiable_function`’s original function operand.
834-
- Look up a `@differentiable` declaration attribute on the original function reference whose parameter indices are a minimal superset of the `differentiable_function`’s parameter indices.
834+
- Look up a `@differentiable` declaration attribute on the "original function reference" whose parameter indices are a minimal superset of the `differentiable_function`’s parameter indices.
835835
- If no such attribute exists, create an empty attribute with the `differentiable_function`’s parameter indices.
836836
- Process the minimal superset SIL differentiability witness:
837837
- If the attribute is missing the JVP function, generate a JVP function.

0 commit comments

Comments
 (0)