Skip to content

Commit ae30804

Browse files
committed
Revert "Merge branch 'main' into vraspar/webgpu-native-matmul"
This reverts commit 934f7e5, reversing changes made to 1b52d26.
1 parent 934f7e5 commit ae30804

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

onnxruntime/core/providers/webgpu/webgpu_utils.h

+1-14
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace onnxruntime {
88
namespace webgpu {
99

10-
inline int GetMaxComponents(int64_t size) {
10+
inline int64_t GetMaxComponents(int64_t size) {
1111
if (size % 4 == 0) {
1212
return 4;
1313
} else if (size % 2 == 0) {
@@ -16,19 +16,6 @@ inline int GetMaxComponents(int64_t size) {
1616
return 1;
1717
}
1818

19-
inline std::string SumVector(std::string x, int components) {
20-
switch (components) {
21-
case 1:
22-
return x;
23-
case 2:
24-
return "(" + x + ".x + " + x + ".y" + ")";
25-
case 4:
26-
return "(" + x + ".x + " + x + ".y + " + x + ".z + " + x + ".w" + ")";
27-
default:
28-
ORT_THROW("Unsupported number of components: ", components);
29-
}
30-
}
31-
3219
inline std::string MakeScalarOrVectorType(int components, std::string_view data_type) {
3320
switch (components) {
3421
case 1:

0 commit comments

Comments
 (0)