classEmptyGradInput extends Activity with Serializable
Sometimes a module may not have gradInput in the backward(e.g. some operation layer or
stopGradient in a Graph). This is allowed when the gradInput is not used anywhere.
In such case, the gradInput of the module should be marked as EmptyGradInput. This class make
sure an error will happen when user try to use such gradInput.
Sometimes a module may not have gradInput in the backward(e.g. some operation layer or stopGradient in a Graph). This is allowed when the gradInput is not used anywhere.
In such case, the gradInput of the module should be marked as EmptyGradInput. This class make sure an error will happen when user try to use such gradInput.