BasicExample

Basic example demonstrating the new StableHLO converter architecture.

This example shows how to:

  1. Create a computational graph

  2. Use the new converter to generate StableHLO MLIR

  3. Validate the output

Functions

Link copied to clipboard

Convert the graph to StableHLO MLIR using the new converter

Link copied to clipboard

Create a simple graph: input -> add -> relu

Link copied to clipboard

Run the complete example