We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a92929d commit 2d9a490Copy full SHA for 2d9a490
runtime/include/tt/runtime/utils.h
@@ -5,8 +5,8 @@
5
#ifndef TT_RUNTIME_UTILS_H
6
#define TT_RUNTIME_UTILS_H
7
8
-#include <concepts>
9
#include <memory>
+#include <type_traits>
10
11
#pragma clang diagnostic push
12
#pragma clang diagnostic ignored "-Wcovered-switch-default"
@@ -45,7 +45,7 @@ inline std::uint32_t dataTypeElementSize(::tt::target::DataType dataType) {
45
}
46
47
48
-template <std::integral T>
+template <typename T, typename = std::enable_if_t<std::is_integral_v<T>>>
49
inline std::vector<T> calculateStride(const std::vector<T> &shape) {
50
assert(!shape.empty());
51
std::vector<T> stride(shape.size(), 1);
0 commit comments