Commit 50a7c773 authored by wren romano's avatar wren romano
Browse files

[mlir][sparse] Calling `SparseTensorType::get{Pos,Crd}Type` directly

The `SparseTensorType` versions of these methods have some special handling to ensure that they work for unannotated tensors; whereas, the `stt.getEncoding().get{Pos,Crd}Type()` idiom can cause segfaults.

Reviewed By: Peiming

Differential Revision: https://reviews.llvm.org/D150815
parent b0cea894
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment