3 ms·
The essence of what I was trying to say with the example is that a layer may be used multiple times through the computation graph. Without an analytical gradien
by PartiallyTyped 6y ago
The essence of what I was trying to say with the example is that a layer may be used multiple times through the computation graph. Without an analytical gradient, you may end up caching all of the inputs to the layer to compute the gradient. The alternative is to sum up the inputs because the gradient is linear with respect to the inputs; with an analytical gradient you can find that and compute it within the code instead of looking for adhoc optimisations within the graph.