Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Commit 2d11264

Browse files
committed
Minor update to skip_input_indices section
1 parent 45071c4 commit 2d11264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rfcs/20201201-cpp-gradients.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ Higher order derivatives are computed by either using a persistent tape or by tr
325325

326326
#### Skipping gradients for certain op inputs (skip\_input\_indices)
327327

328-
A [small set](https://cs.opensource.google/search?q=f:py$%20skip_input_indices&sq=&ss=tensorflow%2Ftensorflow) of python gradient functions have been optimized to not return gradients for inputs which are not tracked under the tape. This is beneficial in eager mode where unneeded gradients cannot be pruned during execution. In the C++ tape, we support this by providing a `skip_input_indices` field on the `ForwardOperation` which stores the list of input indices which are either not watched or have an untrainable dtype.
328+
A [small set](https://cs.opensource.google/search?q=f:py$%20skip_input_indices&sq=&ss=tensorflow%2Ftensorflow) of python gradient functions have been optimized to not return gradients for inputs which are not tracked under the tape. This is beneficial in eager mode where unneeded gradients cannot be pruned during execution. In the C++ tape, we support this by providing a `skip_input_indices` field on the `ForwardOperation` which stores the list of input indices which are not watched.
329329

330330

331331
#### Automatic variable tracking

0 commit comments

Comments
 (0)