Skip to content

Allow scalar int8 tensors to be unranked in the TOSA dialect #150519

@lhutton1

Description

@lhutton1

Scalar operands in the TOSA dialect are currently required to be ranked. This leads to issues/reports similar to the following: https://discourse.llvm.org/t/tosa-pad-operand-must-be-tosa-conformant-scalar-tensor-of-number-values/87432

Scalar tensors are defined with the tablegen definition Tosa_ScalarInt8Tensor. This issue would require updating this definition to allow a scalar tensor to either be ranked or unranked. A similar pull request for reference can be found here: #143770 or here: #150399. Tests should also be added to support the change.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions