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
pull/3849/head
jinchen 2024-11-01 14:22:27 -07:00 committed by GitHub
parent 3104b66560
commit 6aa46967b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -369,6 +369,10 @@ template std::optional<Value>
getConstTensor<bool>(PatternRewriter &, Operation *, ArrayRef<bool> vec,
ArrayRef<int64_t> shape, std::optional<Type> dtype);
template std::optional<Value>
getConstTensor<int8_t>(PatternRewriter &, Operation *, ArrayRef<int8_t> vec,
ArrayRef<int64_t> shape, std::optional<Type> dtype);
template std::optional<Value>
getConstTensor<int32_t>(PatternRewriter &, Operation *, ArrayRef<int32_t> vec,
ArrayRef<int64_t> shape, std::optional<Type> dtype);