yobx.litert.ops.activations#
Converters for TFLite activation ops: RELU, TANH, LOGISTIC, ELU, LEAKY_RELU.
- yobx.litert.ops.activations.convert_elu(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: TFLiteOperator) str[source]#
TFLite
ELU→ ONNXElu(alpha=1.0).
- yobx.litert.ops.activations.convert_gelu(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: TFLiteOperator) str[source]#
TFLite
GELU→ ONNXGelu.
- yobx.litert.ops.activations.convert_hard_swish(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: TFLiteOperator) str[source]#
TFLite
HARD_SWISH→ ONNXHardSwish.
- yobx.litert.ops.activations.convert_leaky_relu(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: TFLiteOperator) str[source]#
TFLite
LEAKY_RELU→ ONNXLeakyRelu.
- yobx.litert.ops.activations.convert_log_softmax(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: TFLiteOperator) str[source]#
TFLite
LOG_SOFTMAX→ ONNXLogSoftmax(axis=-1).
- yobx.litert.ops.activations.convert_relu(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: TFLiteOperator) str[source]#
TFLite
RELU→ ONNXRelu.
- yobx.litert.ops.activations.convert_relu_n1_to1(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: TFLiteOperator) str[source]#
TFLite
RELU_N1_TO_1→ ONNXClip(min=-1, max=1).
- yobx.litert.ops.activations.convert_softmax(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: TFLiteOperator) str[source]#
TFLite
SOFTMAX→ ONNXSoftmax(axis=-1).
- yobx.litert.ops.activations.convert_tanh(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: TFLiteOperator) str[source]#
TFLite
TANH→ ONNXTanh.