BasicMathConverter
Converter for basic mathematical operations (add, subtract, multiply, divide).
This converter handles the basic arithmetic operations by mapping them to their corresponding StableHLO operations. It supports:
Element-wise operations with broadcasting
Mixed-type arithmetic with automatic type promotion
Proper operand ordering and type consistency
Functions
Link copied to clipboard
open override fun convert(node: GraphNode, operands: List<String>, context: ConversionContext): ConversionResult
Convert a graph node to StableHLO operations