Skip to content

Commit 1eaef44

Browse files
[TosaToTensor] Fix a warning (#86703)
This patch fixes: mlir/lib/Conversion/TosaToTensor/TosaToTensor.cpp:76:46: error: 'multiplies' may not intend to support class template argument deduction [-Werror,-Wctad-maybe-unsupported]
1 parent 26dd128 commit 1eaef44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Conversion/TosaToTensor/TosaToTensor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ TensorType inferReshapeExpandedType(TensorType inputType,
7373
// Calculate the product of all elements in 'newShape' except for the -1
7474
// placeholder, which we discard by negating the result.
7575
int64_t totalSizeNoPlaceholder = -std::accumulate(
76-
newShape.begin(), newShape.end(), 1, std::multiplies());
76+
newShape.begin(), newShape.end(), 1, std::multiplies<int64_t>());
7777

7878
// If there is a 0 component in 'newShape', resolve the placeholder as 0.
7979
if (totalSizeNoPlaceholder == 0)

0 commit comments

Comments
 (0)