Last active
May 7, 2024 23:21
-
-
Save archana-ramalingam/589f408ec15e92c0d91df6a7dd4b7823 to your computer and use it in GitHub Desktop.
ReduceLogSumExp Op PR #1880, lit test failure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.affine | |
[2/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.amdgpu | |
[3/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.async.ops_gen | |
[4/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.builtin | |
[5/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.builtin.ops_gen | |
[6/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.affine.ops_gen | |
[7/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.bufferization | |
[8/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.complex | |
[9/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.complex.ops_gen | |
[10/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.index | |
[11/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.cf | |
[12/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.cf.ops_gen | |
[13/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.func | |
[14/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.func.ops_gen | |
[15/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.amdgpu.ops_gen | |
[16/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.async | |
[17/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.bufferization.ops_gen | |
[18/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.index.ops_gen | |
[19/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.llvm | |
[20/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.transform_pdl_extension | |
[21/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.transform_pdl_extension.ops_gen | |
[22/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.gpu | |
[23/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.gpu.ops_gen | |
[24/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.linalg.ops_gen | |
[25/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.transform.extras | |
[26/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.transform.interpreter | |
[27/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.llvm.ops_gen | |
[28/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.bufferization_transform | |
[29/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.bufferization_transform.ops_gen | |
[30/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.gpu_transform | |
[31/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.gpu_transform.ops_gen | |
[32/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.loop_transform | |
[33/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.loop_transform.ops_gen | |
[34/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.memref_transform | |
[35/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.transform | |
[36/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.transform.ops_gen | |
[37/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.memref_transform.ops_gen | |
[38/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.nvgpu_transform | |
[39/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.nvgpu_transform.ops_gen | |
[40/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.structured_transform | |
[41/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.sparse_tensor_transform | |
[42/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.sparse_tensor_transform.ops_gen | |
[43/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.tensor_transform | |
[44/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.tensor_transform.ops_gen | |
[45/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.vector_transform | |
[46/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.math | |
[47/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.math.ops_gen | |
[48/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.arith | |
[49/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.memref | |
[50/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.memref.ops_gen | |
[51/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.structured_transform.ops_gen | |
[52/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.vector_transform.ops_gen | |
[53/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.ml_program | |
[54/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.ml_program.ops_gen | |
[55/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.nvgpu | |
[56/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.nvvm | |
[57/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.rocdl | |
[58/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.arith.ops_gen | |
[59/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.nvgpu.ops_gen | |
[60/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.rocdl.ops_gen | |
[61/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.pdl.ops_gen | |
[62/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.omp | |
[63/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.omp.ops_gen | |
[64/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.scf | |
[65/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.scf.ops_gen | |
[66/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.shape | |
[67/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.nvvm.ops_gen | |
[68/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.quant | |
[69/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.pdl | |
[70/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.shape.ops_gen | |
[71/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.sparse_tensor | |
[72/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.spirv | |
[73/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.spirv.ops_gen | |
[74/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.tensor | |
[75/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.tosa | |
[76/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.tosa.ops_gen | |
[77/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.vector | |
[78/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.tensor.ops_gen | |
[79/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.sparse_tensor.ops_gen | |
[80/94] Running utility command for TorchMLIRPythonModules.sources.TorchMLIRPythonSources.Dialects.torch.ops_gen | |
[81/94] Running utility command for TorchMLIRPythonModules.sources.TorchMLIRPythonSources.Dialects.torch | |
[82/94] Running utility command for TorchMLIRPythonModules.sources.TorchMLIRPythonSources.Tools | |
[83/94] Running utility command for TorchMLIRPythonModules.sources.TorchMLIRSiteInitialize | |
[84/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.vector.ops_gen | |
[85/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Core.Python.Extras | |
[86/94] Running utility command for TorchMLIRPythonModules.sources.TorchMLIRPythonSources.Importers | |
[87/94] Running utility command for TorchMLIRPythonModules.sources.TorchMLIRPythonSources.PublicAPI | |
[88/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.ExecutionEngine | |
[89/94] Running utility command for TorchMLIRPythonModules.sources.TorchMLIRPythonSources.TopLevel | |
[90/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Core.Python | |
[91/94] Running utility command for TorchMLIRPythonModules.sources.MLIRPythonSources.Dialects.linalg | |
[92/94] Running utility command for TorchMLIRPythonModules.sources.TorchMLIRPythonTorchExtensionsSources.JitIRImporter | |
[93/94] Running utility command for TorchMLIRE2ETestPythonModules.sources.TorchMLIRE2ETestPythonSources.Core | |
[93/94] Running the torch-mlir regression tests | |
Enabling Torch v2.3+ tests | |
-- Testing: 96 tests, 24 workers -- | |
Testing: 0.. | |
FAIL: TORCH_MLIR :: Conversion/TorchOnnxToTorch/simple_ops_q_to_z.mlir (64 of 96) | |
******************** TEST 'TORCH_MLIR :: Conversion/TorchOnnxToTorch/simple_ops_q_to_z.mlir' FAILED ******************** | |
Exit Code: 1 | |
Command Output (stderr): | |
-- | |
RUN: at line 1: /home/aramalin/Documents/Nod/torch-mlir/build/bin/torch-mlir-opt </home/aramalin/Documents/Nod/torch-mlir/test/Conversion/TorchOnnxToTorch/simple_ops_q_to_z.mlir --split-input-file -convert-torch-onnx-to-torch | FileCheck /home/aramalin/Documents/Nod/torch-mlir/test/Conversion/TorchOnnxToTorch/simple_ops_q_to_z.mlir | |
+ /home/aramalin/Documents/Nod/torch-mlir/build/bin/torch-mlir-opt --split-input-file -convert-torch-onnx-to-torch | |
+ FileCheck /home/aramalin/Documents/Nod/torch-mlir/test/Conversion/TorchOnnxToTorch/simple_ops_q_to_z.mlir | |
%int7 = torch.constant.int 7 castdtype | |
%none = torch.constant.none noneVal | |
%false = torch.constant.bool false constFalse | |
!torch.vtensor<[3,2,2],f64> f64ResultType | |
%0 = torch.aten.to.dtype %arg0, %int7, %false, %false, %none : !torch.vtensor<[3,2,2],f32>, !torch.int, !torch.bool, !torch.bool, !torch.none -> !torch.vtensor<[3,2,2],f64> dataCast | |
%1 = torch.aten.exp %0 : !torch.vtensor<[3,2,2],f64> -> !torch.vtensor<[3,2,2],f64> dataExp | |
<block argument> of type '!torch.vtensor<[3,2,2],f32>' at index: 0 reducedSumBool | |
%2 = torch.aten.log %arg0 : !torch.vtensor<[3,2,2],f32> -> !torch.vtensor<[3,2,2],f64> Log Result | |
%int6 = torch.constant.int 6 resultDtype | |
%2 = torch.aten.log %arg0 : !torch.vtensor<[3,2,2],f32> -> !torch.vtensor<[3,2,2],f64> finalResult | |
torch-mlir-opt: /home/aramalin/Documents/Nod/torch-mlir/externals/llvm-project/mlir/lib/IR/Operation.cpp:514: void llvm::ilist_traits<mlir::Operation>::removeNodeFromList(Operation *): Assertion `op->block && "not already in an operation block!"' failed. | |
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. | |
Stack dump: | |
0. Program arguments: /home/aramalin/Documents/Nod/torch-mlir/build/bin/torch-mlir-opt --split-input-file -convert-torch-onnx-to-torch | |
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it): | |
0 torch-mlir-opt 0x000055b802b30e0d | |
1 torch-mlir-opt 0x000055b802b312fb | |
2 torch-mlir-opt 0x000055b802b2f366 | |
3 torch-mlir-opt 0x000055b802b31ab5 | |
4 libc.so.6 0x00007f3594242520 | |
5 libc.so.6 0x00007f35942969fc pthread_kill + 300 | |
6 libc.so.6 0x00007f3594242476 raise + 22 | |
7 libc.so.6 0x00007f35942287f3 abort + 211 | |
8 libc.so.6 0x00007f359422871b | |
9 libc.so.6 0x00007f3594239e96 | |
10 torch-mlir-opt 0x000055b8029a7432 | |
11 torch-mlir-opt 0x000055b801423a21 | |
12 torch-mlir-opt 0x000055b8014239d8 | |
13 torch-mlir-opt 0x000055b801423442 | |
14 torch-mlir-opt 0x000055b80140052b | |
15 torch-mlir-opt 0x000055b8013e2fc7 | |
16 torch-mlir-opt 0x000055b8013e8783 | |
17 torch-mlir-opt 0x000055b8013ed2a9 | |
18 torch-mlir-opt 0x000055b8013ed3ad | |
19 torch-mlir-opt 0x000055b7ffc7bff2 | |
20 torch-mlir-opt 0x000055b80155481b | |
21 torch-mlir-opt 0x000055b8015547b5 | |
22 torch-mlir-opt 0x000055b7feb04d29 | |
23 torch-mlir-opt 0x000055b801557555 | |
24 torch-mlir-opt 0x000055b80154ff73 | |
25 torch-mlir-opt 0x000055b8015504f4 | |
26 torch-mlir-opt 0x000055b801555a65 | |
27 torch-mlir-opt 0x000055b8015556e9 | |
28 torch-mlir-opt 0x000055b8015517ab | |
29 torch-mlir-opt 0x000055b8015510ba | |
30 torch-mlir-opt 0x000055b801550be7 | |
31 torch-mlir-opt 0x000055b801554806 | |
32 torch-mlir-opt 0x000055b8015547b5 | |
33 torch-mlir-opt 0x000055b7feb04d29 | |
34 torch-mlir-opt 0x000055b801557555 | |
35 torch-mlir-opt 0x000055b80154ff73 | |
36 torch-mlir-opt 0x000055b8015504f4 | |
37 torch-mlir-opt 0x000055b801551f38 | |
38 torch-mlir-opt 0x000055b801551e62 | |
39 torch-mlir-opt 0x000055b7feaa6582 | |
40 torch-mlir-opt 0x000055b7feaa61b8 | |
41 torch-mlir-opt 0x000055b7feaa5f9c | |
42 torch-mlir-opt 0x000055b7feaa5f36 | |
43 torch-mlir-opt 0x000055b802a19832 | |
44 torch-mlir-opt 0x000055b802a19758 | |
45 torch-mlir-opt 0x000055b802a1958e | |
46 torch-mlir-opt 0x000055b802a194da | |
47 torch-mlir-opt 0x000055b802a193f3 | |
48 torch-mlir-opt 0x000055b7feaa2865 | |
49 torch-mlir-opt 0x000055b7feaa2bc9 | |
50 torch-mlir-opt 0x000055b7feaa2d98 | |
51 torch-mlir-opt 0x000055b7fea9e225 | |
52 libc.so.6 0x00007f3594229d90 | |
53 libc.so.6 0x00007f3594229e40 __libc_start_main + 128 | |
54 torch-mlir-opt 0x000055b7fea9e0b5 | |
/home/aramalin/Documents/Nod/torch-mlir/test/Conversion/TorchOnnxToTorch/simple_ops_q_to_z.mlir:922:17: error: CHECK-LABEL: expected string not found in input | |
// CHECK-LABEL: func.func @test_reduce_log_sum_exp_default_axes_keepdims_example | |
^ | |
<stdin>:829:56: note: scanning from here | |
func.func @test_reduce_log_sum_do_not_keepdims_example(%arg0: !torch.vtensor<[3,2,2],f32>, %arg1: !torch.vtensor<[1],si64>) -> !torch.vtensor<[3,2],f32> attributes {torch.onnx_meta.ir_version = 8 : si64, torch.onnx_meta.opset_version = 18 : si64, torch.onnx_meta.producer_name = "backend-test", torch.onnx_meta.producer_version = ""} { | |
^ | |
Input file: <stdin> | |
Check file: /home/aramalin/Documents/Nod/torch-mlir/test/Conversion/TorchOnnxToTorch/simple_ops_q_to_z.mlir | |
-dump-input=help explains the following input dump. | |
Input was: | |
<<<<<< | |
. | |
. | |
. | |
824: } | |
825: } | |
826: | |
827: // ----- | |
828: module { | |
829: func.func @test_reduce_log_sum_do_not_keepdims_example(%arg0: !torch.vtensor<[3,2,2],f32>, %arg1: !torch.vtensor<[1],si64>) -> !torch.vtensor<[3,2],f32> attributes {torch.onnx_meta.ir_version = 8 : si64, torch.onnx_meta.opset_version = 18 : si64, torch.onnx_meta.producer_name = "backend-test", torch.onnx_meta.producer_version = ""} { | |
label:922 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found | |
830: %int0 = torch.constant.int 0 | |
label:922 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
831: %int0_0 = torch.constant.int 0 | |
label:922 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
832: %0 = torch.aten.select.int %arg1, %int0, %int0_0 : !torch.vtensor<[1],si64>, !torch.int, !torch.int -> !torch.vtensor<[1],si64> | |
label:922 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
833: %1 = torch.aten.item %0 : !torch.vtensor<[1],si64> -> !torch.int | |
label:922 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
834: %2 = torch.prim.ListConstruct %1 : (!torch.int) | |
label:922 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
>>>>>> | |
-- | |
******************** | |
Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. | |
******************** | |
Failed Tests (1): | |
TORCH_MLIR :: Conversion/TorchOnnxToTorch/simple_ops_q_to_z.mlir | |
Testing Time: 42.71s | |
Total Discovered Tests: 96 | |
Passed: 95 (98.96%) | |
Failed: 1 (1.04%) | |
FAILED: tools/torch-mlir/test/CMakeFiles/check-torch-mlir /home/aramalin/Documents/Nod/torch-mlir/build/tools/torch-mlir/test/CMakeFiles/check-torch-mlir | |
cd /home/aramalin/Documents/Nod/torch-mlir/build/tools/torch-mlir/test && /home/aramalin/Documents/Nod/torch-mlir/mlir_venv/bin/python3.11 /home/aramalin/Documents/Nod/torch-mlir/build/./bin/llvm-lit -sv /home/aramalin/Documents/Nod/torch-mlir/build/tools/torch-mlir/test | |
ninja: build stopped: subcommand failed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment