sophgo / tpu-mlir

Machine learning compiler based on MLIR for Sophgo TPU.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tinypose 转换问题

XiaBing992 opened this issue · comments

commented

[Running]: tpuc-opt tinypose_256x192_origin.mlir --shape-infer --canonicalize --after-optimize -o tinypose_256x192.mlir
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: tpuc-opt tinypose_256x192_origin.mlir --init --shape-infer --canonicalize --after-optimize --deinit --mlir-print-debuginfo -o tinypose_256x192.mlir
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 tpuc-opt 0x000055e10b4ab9ba
1 tpuc-opt 0x000055e10b4a8e0c
2 libpthread.so.0 0x00007f4e615a8980
3 libc.so.6 0x00007f4e60675e87 gsignal + 199
4 libc.so.6 0x00007f4e606777f1 abort + 321
5 libstdc++.so.6 0x00007f4e61299957
6 libstdc++.so.6 0x00007f4e6129fae6
7 libstdc++.so.6 0x00007f4e6129fb21
8 libstdc++.so.6 0x00007f4e6129fd54
9 libstdc++.so.6 0x00007f4e612c8012
10 tpuc-opt 0x000055e10b1500be
11 tpuc-opt 0x000055e10b11f828
12 tpuc-opt 0x000055e10b1b2cbc
13 tpuc-opt 0x000055e10b41663b
14 tpuc-opt 0x000055e10b1b4d84
15 tpuc-opt 0x000055e10b266b49
16 tpuc-opt 0x000055e10b267d18
17 tpuc-opt 0x000055e10aa943ab
18 tpuc-opt 0x000055e10aa94c5b
19 tpuc-opt 0x000055e10aa95092
20 tpuc-opt 0x000055e10b42f20f
21 tpuc-opt 0x000055e10aa92b24
22 tpuc-opt 0x000055e10aa9560f
23 tpuc-opt 0x000055e10aa876cf
24 libc.so.6 0x00007f4e60658c87 __libc_start_main + 231
25 tpuc-opt 0x000055e10aa91aba
Aborted (core dumped)
Traceback (most recent call last):
File "/workspace/tpu-mlir/python/tools/model_transform.py", line 237, in
tool.model_transform(args.mlir, args.post_handle_type)
File "/workspace/tpu-mlir/python/tools/model_transform.py", line 40, in model_transform
mlir_opt_for_top(mlir_origin, self.mlir_file, post_handle_type)
File "/workspace/tpu-mlir/python/utils/mlir_shell.py", line 28, in mlir_opt_for_top
_os_system(cmd)
File "/workspace/tpu-mlir/python/utils/mlir_shell.py", line 20, in _os_system
raise RuntimeError("[!Error]: {}".format(cmd_str))
RuntimeError: [!Error]: tpuc-opt tinypose_256x192_origin.mlir --shape-infer --canonicalize --after-optimize -o tinypose_256x192.mlir