Skip to content
Commit b2505ca2 authored by smit-hinsu's avatar smit-hinsu Committed by Jacques Pienaar
Browse files

[MLIR] Allow ShapedTypeComponents with attribute in inferReturnTensorTypes



Originally, inferReturnTensorTypes didn't support shaped type components
containing an attribute just because there wasn't any motivating use-case.
Removing that limitation and using it to set the encoding attribute for
RankedTensorType.

Updated the existing test to set result attribute based on the first operand,
if available.

Signed-off-by: default avatarSmit Hinsu <smittvhinsu@gmail.com>

Differential Revision: https://reviews.llvm.org/D139271
parent 140a83e3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment