StableHloModule

data class StableHloModule(val content: String, val functionName: String = "main", val inputSpecs: List<TensorSpec> = emptyList(), val outputSpecs: List<TensorSpec> = emptyList(), val metadata: Map<String, Any> = emptyMap())(source)

Represents a StableHLO MLIR module text output

Constructors

Link copied to clipboard
constructor(content: String, functionName: String = "main", inputSpecs: List<TensorSpec> = emptyList(), outputSpecs: List<TensorSpec> = emptyList(), metadata: Map<String, Any> = emptyMap())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns an InputStream over the MLIR content encoded as UTF-8.

Link copied to clipboard

Returns a Reader over the MLIR content.

Link copied to clipboard

Lazily iterate over the MLIR content line by line.

Link copied to clipboard

Optimize this module using the provided optimizer

Link copied to clipboard
fun validate(validator: MlirValidator): List<String>

Validate this module using the provided validator