We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 741829f commit 1563988Copy full SHA for 1563988
exla/lib/exla/mlir/module.ex
@@ -98,7 +98,8 @@ defmodule EXLA.MLIR.Module do
98
do: -1,
99
else: Keyword.get(options, :device_id, client.default_device_id)
100
101
- # module.ref |> EXLA.NIF.mlir_module_to_string() |> elem(1) |> IO.puts()
+ # Uncomment to debug the module MLIR source
102
+ # module |> as_string() |> IO.puts()
103
104
ref =
105
EXLA.NIF.mlir_compile(
@@ -126,7 +127,7 @@ defmodule EXLA.MLIR.Module do
126
127
Returns a human-readable representation of the module using MLIR
128
syntax.
129
"""
- def to_string(module = %__MODULE__{}) do
130
+ def as_string(module = %__MODULE__{}) do
131
EXLA.NIF.mlir_module_to_string(module.ref) |> unwrap!()
132
end
133
0 commit comments