You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forward and backward should be final for all non-container layers. The non-container layer should only override updateOutput(), updateGradInput() and accGrad(). Some common logic(e.g. bypass the layer/freeze the parameter) should be put into the forward/backward method and not be changed by the non-container layers.
Forward/Backward should be overridden in container layers. In container forward/backward method, the submodules should always call forward/backward method of the submodule.
Activity
zhichao-li commentedon Jun 7, 2017
A similar one need to be final: #966
yiheng commentedon Jun 8, 2017
Forward and backward should be final for all non-container layers. The non-container layer should only override updateOutput(), updateGradInput() and accGrad(). Some common logic(e.g. bypass the layer/freeze the parameter) should be put into the forward/backward method and not be changed by the non-container layers.
Forward/Backward should be overridden in container layers. In container forward/backward method, the submodules should always call forward/backward method of the submodule.
7 remaining items