Class Dropout

java.lang.Object
ai.beestream.jitnn.nn.Module
ai.beestream.jitnn.nn.Dropout
All Implemented Interfaces:
AutoCloseable

public final class Dropout extends Module
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 Details

    • Dropout

      public Dropout(float p, long seed)
      Dropout that zeroes each element with probability p and scales the rest by 1 / (1 - p); masks are seeded from seed.
  • Method Details