File tree 1 file changed +1
-14
lines changed
onnxruntime/core/providers/webgpu
1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 7
7
namespace onnxruntime {
8
8
namespace webgpu {
9
9
10
- inline int GetMaxComponents (int64_t size) {
10
+ inline int64_t GetMaxComponents (int64_t size) {
11
11
if (size % 4 == 0 ) {
12
12
return 4 ;
13
13
} else if (size % 2 == 0 ) {
@@ -16,19 +16,6 @@ inline int GetMaxComponents(int64_t size) {
16
16
return 1 ;
17
17
}
18
18
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
-
32
19
inline std::string MakeScalarOrVectorType (int components, std::string_view data_type) {
33
20
switch (components) {
34
21
case 1 :
You can’t perform that action at this time.
0 commit comments