From 6aa46967b69a01a46d56146250978d08e243e75e Mon Sep 17 00:00:00 2001 From: jinchen <49575973+jinchen62@users.noreply.github.com> Date: Fri, 1 Nov 2024 14:22:27 -0700 Subject: [PATCH] Add tosa::getConstTensor with int8_t template (#3845) Add tosa::getConstTensor with int8_t template used in https://github.com/llvm/torch-mlir/pull/3827 --- lib/Conversion/TorchToTosa/TosaLegalizeUtils.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Conversion/TorchToTosa/TosaLegalizeUtils.cpp b/lib/Conversion/TorchToTosa/TosaLegalizeUtils.cpp index abcd45ce8..bf7086a77 100644 --- a/lib/Conversion/TorchToTosa/TosaLegalizeUtils.cpp +++ b/lib/Conversion/TorchToTosa/TosaLegalizeUtils.cpp @@ -369,6 +369,10 @@ template std::optional getConstTensor(PatternRewriter &, Operation *, ArrayRef vec, ArrayRef shape, std::optional dtype); +template std::optional +getConstTensor(PatternRewriter &, Operation *, ArrayRef vec, + ArrayRef shape, std::optional dtype); + template std::optional getConstTensor(PatternRewriter &, Operation *, ArrayRef vec, ArrayRef shape, std::optional dtype);