Class PReLU

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

public final class PReLU extends Module
PReLU with a learnable slope, one shared or one per channel, initialised to init (PyTorch: 0.25).
  • Constructor Details

    • PReLU

      public PReLU(int parameters, float init)
      PReLU with parameters slopes (1 shared, or one per channel), each init at the start.
  • Method Details

    • weight

      public Tensor weight()
      The slopes [parameters].
    • forward

      public Tensor forward(Tensor x)
      Description copied from class: Module
      Applies the module to x.
      Specified by:
      forward in class Module