-
Either use the proposed approach from your cross post or initialize the layers first and use a switch in the custom
forwardmethod. -
I would write a custom dropout layer, which accepts an additional flag to resample the mask.
Either use the proposed approach from your cross post or initialize the layers first and use a switch in the custom forward method.
I would write a custom dropout layer, which accepts an additional flag to resample the mask.