Enum Class GradReq

java.lang.Object
java.lang.Enum<GradReq>
ai.djl.mxnet.engine.GradReq
All Implemented Interfaces:
Serializable, Comparable<GradReq>, Constable

public enum GradReq extends Enum<GradReq>
An enum that indicates whether gradient is required.
  • Enum Constant Details

    • NULL

      public static final GradReq NULL
    • WRITE

      public static final GradReq WRITE
    • ADD

      public static final GradReq ADD
  • Method Details

    • values

      public static GradReq[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GradReq valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getType

      public String getType()
      Gets the type of this GradReq.
      Returns:
      the type
    • getValue

      public int getValue()
      Gets the value of this GradType.
      Returns:
      the value