ConversionContext
Context object for maintaining state during StableHLO conversion.
This class manages SSA value names, type mapping, and MLIR code generation during the conversion process from ComputeGraph to StableHLO.
Functions
Link copied to clipboard
Emit a comment with proper indentation
Link copied to clipboard
Emit an operation with proper indentation
Link copied to clipboard
Get the complete generated MLIR content
Link copied to clipboard
Get input nodes for a given node from the graph
Link copied to clipboard
Get the type mapper instance
Link copied to clipboard
Get the SSA value name for a node ID
Link copied to clipboard
Generate the next temporary SSA value name
Link copied to clipboard
Set the graph reference for node lookups
Link copied to clipboard
Set the SSA value name for a node ID