Enumerations
Below are all the enumerations that exist within the Forge codebase. These enumerations are mainly constructs for the graph backend within Forge. They are encoded within and outside the graphs.
String Enumerations
All enumerations are Python strings. Using Python string primitives improves the efficiency of encoding data within the graphs.
forge.relay.graph.enums.ActivationType
Bases: str
, Enum
Attributes:
Attributes
TENSOR
class-attribute
instance-attribute
TUPLE
class-attribute
instance-attribute
forge.relay.graph.enums.OperatorType
Bases: str
, Enum
Attributes:
Attributes
OP
class-attribute
instance-attribute
LAMBDA
class-attribute
instance-attribute
GLOBAL
class-attribute
instance-attribute
forge.relay.graph.enums.RelayExprType
Bases: str
, Enum
Attributes:
Attributes
FUNCTION
class-attribute
instance-attribute
CALL
class-attribute
instance-attribute
TUPLE
class-attribute
instance-attribute
TUPLEGETITEM
class-attribute
instance-attribute
TUPLEGETITEM = 'TupleGetItem'
VAR
class-attribute
instance-attribute
CONSTANT
class-attribute
instance-attribute
forge.relay.graph.enums.QuantizationType
Bases: str
, Enum
Attributes:
Attributes
ANY
class-attribute
instance-attribute
STATIC
class-attribute
instance-attribute
DYNAMIC
class-attribute
instance-attribute
forge.relay.graph.enums.DataType
Bases: str
, Enum
Attributes:
Attributes
INT8
class-attribute
instance-attribute
INT16
class-attribute
instance-attribute
INT32
class-attribute
instance-attribute
UINT8
class-attribute
instance-attribute
FLOAT16
class-attribute
instance-attribute
FLOAT32
class-attribute
instance-attribute
forge.relay.graph.enums.CalibrationMethod
Bases: str
, Enum
Attributes:
Attributes
MINMAX
class-attribute
instance-attribute
ENTROPY
class-attribute
instance-attribute
AVERAGE
class-attribute
instance-attribute
PERCENTILE
class-attribute
instance-attribute
PERCENTILE = 'percentile'