| 55 | |
| 56 | |
| 57 | class TapeEntry(NamedTuple): |
| 58 | # names of the inputs to the original computation |
| 59 | inputs: List[str] |
| 60 | # names of the outputs of the original computation |
| 61 | outputs: List[str] |
| 62 | # apply chain rule |
| 63 | propagate: "Callable[List[Variable], List[Variable]]" |
| 64 | |
| 65 | |
| 66 | gradient_tape: List[TapeEntry] = [] |
no outgoing calls
searching dependent graphs…