diff options
author | TatWai Chong <tatwai.chong@arm.com> | 2023-05-12 19:55:45 +0000 |
---|---|---|
committer | Robert Suderman <suderman@google.com> | 2023-05-12 20:17:32 +0000 |
commit | 26a7f42306134dca659f19ca5d7bdb4fe23340f2 (patch) | |
tree | d25be110018e31cb70f7766655cc68dbbb357917 /llvm/lib/Support/StringRef.cpp | |
parent | 050c09f0bed67f3135cb2ad99d4d35e241e5d61b (diff) | |
download | llvm-26a7f42306134dca659f19ca5d7bdb4fe23340f2.zip llvm-26a7f42306134dca659f19ca5d7bdb4fe23340f2.tar.gz llvm-26a7f42306134dca659f19ca5d7bdb4fe23340f2.tar.bz2 |
[mlir][tosa] Add accumulator type attribute to TOSA dialect
Tosa supports fp16 and fp32 accumulator type for fp16 input, but
no way to tell for computational operators whether accumulator
should be fp16 or fp32 from input type. Add this new attribute
to specify the type.
Set to fp32 by default for now. When the time fp16 is supported,
the accumulator type can be selected based on trade-off between
performance and accuracy.
Reviewed By: jpienaar
Differential Revision: https://reviews.llvm.org/D146317
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
0 files changed, 0 insertions, 0 deletions