Class Dropout
java.lang.Object
ai.beestream.jitnn.nn.Module
ai.beestream.jitnn.nn.Dropout
- All Implemented Interfaces:
AutoCloseable
Inverted dropout in training mode, identity in evaluation mode. Each forward pass draws a new
seed on the host, so a replayed plan gets a new mask without recompiling; each Dropout module
has its own Philox stream.
-
Constructor Summary
ConstructorsConstructorDescriptionDropout(float p, long seed) Dropout that zeroes each element with probabilitypand scales the rest by 1 / (1 - p); masks are seeded fromseed. -
Method Summary
Methods inherited from class Module
buffer, buffers, child, close, isClosed, isTraining, loadStateDict, parameter, parameterCount, parameters, stateDict, train, zeroGrad
-
Constructor Details
-
Dropout
public Dropout(float p, long seed) Dropout that zeroes each element with probabilitypand scales the rest by 1 / (1 - p); masks are seeded fromseed.
-
-
Method Details
-
forward
-