File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ static inline int CanonicalAxis(const int axis, const int rank) {
26
26
return axis;
27
27
}
28
28
29
- template <typename T = int >
29
+ template <typename T = int64_t >
30
30
static inline T SizeToAxis (const int axis, DDim dims) {
31
31
T size = 1 ;
32
32
for (int i = 0 ; i < axis; i++) {
@@ -35,7 +35,7 @@ static inline T SizeToAxis(const int axis, DDim dims) {
35
35
return size;
36
36
}
37
37
38
- template <typename T = int >
38
+ template <typename T = int64_t >
39
39
static inline T SizeFromAxis (const int axis, DDim dims) {
40
40
T size = 1 ;
41
41
for (int i = axis; i < dims.size (); i++) {
@@ -44,7 +44,7 @@ static inline T SizeFromAxis(const int axis, DDim dims) {
44
44
return size;
45
45
}
46
46
47
- template <typename T = int >
47
+ template <typename T = int64_t >
48
48
static inline T SizeOutAxis (const int axis, DDim dims) {
49
49
T size = 1 ;
50
50
for (int i = axis + 1 ; i < dims.size (); i++) {
You can’t perform that action at this time.
0 commit comments