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(), val externalParameters: List<ExternalParameterRef> = emptyList())(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(), externalParameters: List<ExternalParameterRef> = emptyList())
Properties
Link copied to clipboard
Constants that were lifted out of content as util.global references under ConstantMaterializationPolicy.ExternalAlways. A downstream packager writes these into an IREE .irpa; see issue #523. Empty under the default inline policy.
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
Lazily iterate over the MLIR content line by line.
Link copied to clipboard
Optimize this module using the provided optimizer
Link copied to clipboard
Validate this module using the provided validator