Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

torch.ops.aten.silu_backward can not lowering #3731

Open
huangmaa opened this issue Sep 25, 2024 · 0 comments
Open

torch.ops.aten.silu_backward can not lowering #3731

huangmaa opened this issue Sep 25, 2024 · 0 comments

Comments

@huangmaa
Copy link

error:

File "/workspace/torch-mlir/build/tools/torch-mlir/python_packages/torch_mlir/torch_mlir/fx.py", line 82, in export_and_import
    prog = prog.run_decompositions(decomposition_table)
  File "/workspace/.venv/torch-mlir/lib/python3.10/site-packages/torch/export/exported_program.py", line 114, in wrapper
    return fn(*args, **kwargs)
  File "/workspace/.venv/torch-mlir/lib/python3.10/site-packages/torch/export/exported_program.py", line 1003, in run_decompositions
    return _decompose_exported_program(
  File "/workspace/.venv/torch-mlir/lib/python3.10/site-packages/torch/export/exported_program.py", line 617, in _decompose_exported_program
    gm, new_graph_signature = _decompose_and_get_gm_with_new_signature_constants(
  File "/workspace/.venv/torch-mlir/lib/python3.10/site-packages/torch/export/exported_program.py", line 410, in _decompose_and_get_gm_with_new_signature_constants
    gm, graph_signature = aot_export_module(
  File "/workspace/.venv/torch-mlir/lib/python3.10/site-packages/torch/_functorch/aot_autograd.py", line 1246, in aot_export_module
    fx_g, metadata, in_spec, out_spec = _aot_export_function(
  File "/workspace/.venv/torch-mlir/lib/python3.10/site-packages/torch/_functorch/aot_autograd.py", line 1480, in _aot_export_function
    fx_g, meta = create_aot_dispatcher_function(
  File "/workspace/.venv/torch-mlir/lib/python3.10/site-packages/torch/_functorch/aot_autograd.py", line 522, in create_aot_dispatcher_function
    return _create_aot_dispatcher_function(
  File "/workspace/.venv/torch-mlir/lib/python3.10/site-packages/torch/_functorch/aot_autograd.py", line 759, in _create_aot_dispatcher_function
    compiled_fn, fw_metadata = compiler_fn(
  File "/workspace/.venv/torch-mlir/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/jit_compile_runtime_wrappers.py", line 106, in aot_dispatch_export
    graph, _, _ = aot_dispatch_base_graph(
  File "/workspace/.venv/torch-mlir/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/dispatch_and_compile_graph.py", line 186, in aot_dispatch_base_graph
    copy_count = assert_functional_graph(fw_module.graph)
  File "/workspace/.venv/torch-mlir/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/functional_utils.py", line 431, in assert_functional_graph
    assert (
AssertionError: aot_autograd expected to have an entirely functional graph, but found %fill_ : [num_users=1] = call_function[target=torch.ops.aten.fill_.Scalar](args = (%empty_like, 1), kwargs = {})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant