Returns the gradients in reverse order (namespace stripped), for the optimal synchronization order.
(model)
| 1543 | |
| 1544 | |
| 1545 | def _GetReverseOrderedGrads(model): |
| 1546 | ''' |
| 1547 | Returns the gradients in reverse order (namespace stripped), |
| 1548 | for the optimal synchronization order. |
| 1549 | ''' |
| 1550 | return list(reversed(model._grad_names)) |
| 1551 | |
| 1552 | |
| 1553 | # A helper function to extract a parameter's name |
no test coverage detected
searching dependent graphs…