Created
September 28, 2022 07:36
-
-
Save pashu123/7c229637eea160e054386ea96db1fece to your computer and use it in GitHub Desktop.
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
torch-mlir-opt: /home/prashant/torch-mlir/externals/llvm-project/mlir/lib/IR/BuiltinAttributes.cpp:1031: static mlir::DenseElementsAttr mlir::DenseElementsAttr::get(mlir::ShapedType, ArrayRef<mlir::Attribute>): Assertion `intAttr.getType() == eltType && "expected integer attribute type to equal element type"' failed. | |
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. | |
Stack dump: | |
0. Program arguments: torch-mlir-opt -pass-pipeline=torch-backend-to-tosa-backend-pipeline xyz.mlir | |
#0 0x0000557fff3cedd3 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0x187cdd3) | |
#1 0x0000557fff3ccd4e llvm::sys::RunSignalHandlers() (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0x187ad4e) | |
#2 0x0000557fff3cf16a SignalHandler(int) Signals.cpp:0:0 | |
#3 0x00007f745f34c520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520) | |
#4 0x00007f745f3a0a7c __pthread_kill_implementation ./nptl/./nptl/pthread_kill.c:44:76 | |
#5 0x00007f745f3a0a7c __pthread_kill_internal ./nptl/./nptl/pthread_kill.c:78:10 | |
#6 0x00007f745f3a0a7c pthread_kill ./nptl/./nptl/pthread_kill.c:89:10 | |
#7 0x00007f745f34c476 gsignal ./signal/../sysdeps/posix/raise.c:27:6 | |
#8 0x00007f745f3327f3 abort ./stdlib/./stdlib/abort.c:81:7 | |
#9 0x00007f745f33271b _nl_load_domain ./intl/./intl/loadmsgcat.c:1177:9 | |
#10 0x00007f745f343e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96) | |
#11 0x0000557fff2dcee6 mlir::DenseElementsAttr::get(mlir::ShapedType, llvm::ArrayRef<mlir::Attribute>) (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0x178aee6) | |
#12 0x0000557ffe94d9f5 mlir::tosa::SliceOp::fold(llvm::ArrayRef<mlir::Attribute>) (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0xdfb9f5) | |
#13 0x0000557ffe945663 mlir::LogicalResult mlir::Op<mlir::tosa::SliceOp, mlir::OpTrait::ZeroRegions, mlir::OpTrait::OneResult, mlir::OpTrait::OneTypedResult<mlir::Type>::Impl, mlir::OpTrait::ZeroSuccessors, mlir::OpTrait::OneOperand, mlir::OpTrait::OpInvariants, mlir::InferShapedTypeOpInterface::Trait, mlir::MemoryEffectOpInterface::Trait, mlir::tosa::TosaOp::Trait>::foldSingleResultHook<mlir::tosa::SliceOp>(mlir::Operation*, llvm::ArrayRef<mlir::Attribute>, llvm::SmallVectorImpl<mlir::OpFoldResult>&) (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0xdf3663) | |
#14 0x0000557fff344aa8 mlir::Operation::fold(llvm::ArrayRef<mlir::Attribute>, llvm::SmallVectorImpl<mlir::OpFoldResult>&) (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0x17f2aa8) | |
#15 0x0000557fff235733 mlir::OperationFolder::tryToFold(mlir::OpBuilder&, mlir::Operation*, llvm::SmallVectorImpl<mlir::Value>&, llvm::function_ref<void (mlir::Operation*)>) (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0x16e3733) | |
#16 0x0000557fff235188 mlir::OperationFolder::tryToFold(mlir::Operation*, llvm::function_ref<void (mlir::Operation*)>, llvm::function_ref<void (mlir::Operation*)>, bool*) (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0x16e3188) | |
#17 0x0000557fff23a366 mlir::applyPatternsAndFoldGreedily(llvm::MutableArrayRef<mlir::Region>, mlir::FrozenRewritePatternSet const&, mlir::GreedyRewriteConfig) (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0x16e8366) | |
#18 0x0000557ffe95ec80 (anonymous namespace)::TosaMakeBroadcastable::runOnOperation() TosaMakeBroadcastable.cpp:0:0 | |
#19 0x0000557fff278594 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0x1726594) | |
#20 0x0000557fff278a78 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0x1726a78) | |
#21 0x0000557fff27a34b mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool) (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0x172834b) | |
#22 0x0000557fff278669 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0x1726669) | |
#23 0x0000557fff278a78 mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0x1726a78) | |
#24 0x0000557fff27b02e mlir::PassManager::run(mlir::Operation*) (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0x172902e) | |
#25 0x0000557ffdc70857 performActions(llvm::raw_ostream&, bool, bool, llvm::SourceMgr&, mlir::MLIRContext*, llvm::function_ref<mlir::LogicalResult (mlir::PassManager&)>, bool) MlirOptMain.cpp:0:0 | |
#26 0x0000557ffdc70501 mlir::LogicalResult llvm::function_ref<mlir::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>::callback_fn<mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<mlir::LogicalResult (mlir::PassManager&)>, mlir::DialectRegistry&, bool, bool, bool, bool, bool, bool)::$_0>(long, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&) MlirOptMain.cpp:0:0 | |
#27 0x0000557fff36ccc7 mlir::splitAndProcessBuffer(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<mlir::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>, llvm::raw_ostream&, bool, bool) (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0x181acc7) | |
#28 0x0000557ffdc6e9e4 mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<mlir::LogicalResult (mlir::PassManager&)>, mlir::DialectRegistry&, bool, bool, bool, bool, bool, bool) (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0x11c9e4) | |
#29 0x0000557ffdc6ee19 mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&, bool) (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0x11ce19) | |
#30 0x0000557ffdc67370 main (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0x115370) | |
#31 0x00007f745f333d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 | |
#32 0x00007f745f333e40 call_init ./csu/../csu/libc-start.c:128:20 | |
#33 0x00007f745f333e40 __libc_start_main ./csu/../csu/libc-start.c:379:5 | |
#34 0x0000557ffdc67255 _start (/home/prashant/torch-mlir/build/bin/torch-mlir-opt+0x115255) | |
[1] 301686 IOT instruction (core dumped) torch-mlir-opt -pass-pipeline='torch-backend-to-tosa-backend-pipeline' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment