yobx.tensorflow.ops.binary_ops#

Converters for TF binary (element-wise) ops.

Arithmetic#

Sub, Mul, RealDiv, FloorDiv, Minimum, Maximum, Pow, SquaredDifference, FloorMod, TruncateMod

Comparison#

Equal, NotEqual, Greater, GreaterEqual, Less, LessEqual

Logical#

LogicalAnd, LogicalNot, LogicalOr, LogicalXor

yobx.tensorflow.ops.binary_ops.convert_equal(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF Equal → ONNX Equal.

yobx.tensorflow.ops.binary_ops.convert_floor_div(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF FloorDiv → ONNX Floor(Div(a, b)).

yobx.tensorflow.ops.binary_ops.convert_floor_mod(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF FloorMod → ONNX Mod(fmod=0).

yobx.tensorflow.ops.binary_ops.convert_greater(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF Greater → ONNX Greater.

yobx.tensorflow.ops.binary_ops.convert_greater_equal(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF GreaterEqual → ONNX GreaterOrEqual.

yobx.tensorflow.ops.binary_ops.convert_less(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF Less → ONNX Less.

yobx.tensorflow.ops.binary_ops.convert_less_equal(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF LessEqual → ONNX LessOrEqual.

yobx.tensorflow.ops.binary_ops.convert_logical_and(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF LogicalAnd → ONNX And.

yobx.tensorflow.ops.binary_ops.convert_logical_not(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF LogicalNot → ONNX Not.

yobx.tensorflow.ops.binary_ops.convert_logical_or(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF LogicalOr → ONNX Or.

yobx.tensorflow.ops.binary_ops.convert_logical_xor(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF LogicalXor → ONNX Xor.

yobx.tensorflow.ops.binary_ops.convert_maximum(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF Maximum → ONNX Max.

yobx.tensorflow.ops.binary_ops.convert_minimum(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF Minimum → ONNX Min.

yobx.tensorflow.ops.binary_ops.convert_mul(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF Mul → ONNX Mul.

yobx.tensorflow.ops.binary_ops.convert_not_equal(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF NotEqual → ONNX Not(Equal(a, b)).

yobx.tensorflow.ops.binary_ops.convert_pow(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF Pow → ONNX Pow.

yobx.tensorflow.ops.binary_ops.convert_real_div(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF RealDiv → ONNX Div.

yobx.tensorflow.ops.binary_ops.convert_squared_difference(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF SquaredDifference → ONNX Mul(Sub(a, b), Sub(a, b)).

yobx.tensorflow.ops.binary_ops.convert_sub(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF Sub → ONNX Sub.

yobx.tensorflow.ops.binary_ops.convert_truncate_mod(g: GraphBuilderExtendedProtocol, sts: Dict[str, Any], outputs: List[str], op: Operation) str[source]#

TF TruncateMod → ONNX Mod(fmod=1).