Enum AbstractSession.ExecType
- java.lang.Object
-
- java.lang.Enum<AbstractSession.ExecType>
-
- org.nd4j.autodiff.samediff.internal.AbstractSession.ExecType
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractSession.ExecType>
- Enclosing class:
- AbstractSession<T,O>
protected static enum AbstractSession.ExecType extends Enum<AbstractSession.ExecType>
ExecType: Execution type, as used in ExecStep
OP: Operation execution
VARIABLE: Variable "execution", mainly used to trigger ops that depend on the variable
CONSTANT: As per variable
PLACEHOLDER: As per variable
SWITCH_L and SWITCH_R: This is a bit of a hack to account for the fact that only one of the switch branches (left or right) will ever be available; without this, once the switch op is executed, we'll (incorrectly) conclude that *both* branches can be executed
EXEC_START: Start of execution
CONTROL_DEP: Control dependency for op. Used for TF import, due to its odd "constant depends on op in a frame" behaviour
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSTANT
CONTROL_DEP
EXEC_START
OP
PLACEHOLDER
SWITCH_L
SWITCH_R
VARIABLE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractSession.ExecType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbstractSession.ExecType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OP
public static final AbstractSession.ExecType OP
-
VARIABLE
public static final AbstractSession.ExecType VARIABLE
-
CONSTANT
public static final AbstractSession.ExecType CONSTANT
-
PLACEHOLDER
public static final AbstractSession.ExecType PLACEHOLDER
-
SWITCH_L
public static final AbstractSession.ExecType SWITCH_L
-
SWITCH_R
public static final AbstractSession.ExecType SWITCH_R
-
EXEC_START
public static final AbstractSession.ExecType EXEC_START
-
CONTROL_DEP
public static final AbstractSession.ExecType CONTROL_DEP
-
-
Method Detail
-
values
public static AbstractSession.ExecType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AbstractSession.ExecType c : AbstractSession.ExecType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractSession.ExecType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-