HasGrad reports whether there are accumulated gradients.
()
| 38 | Grad() Tensor |
| 39 | // HasGrad reports whether there are accumulated gradients. |
| 40 | HasGrad() bool |
| 41 | // RequiresGrad reports whether the node requires gradients. |
| 42 | RequiresGrad() bool |
| 43 | // AccGrad accumulates the gradients into the node. |
no outgoing calls