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) {
2626 return axis;
2727}
2828
29- template <typename T = int >
29+ template <typename T = int64_t >
3030static inline T SizeToAxis (const int axis, DDim dims) {
3131 T size = 1 ;
3232 for (int i = 0 ; i < axis; i++) {
@@ -35,7 +35,7 @@ static inline T SizeToAxis(const int axis, DDim dims) {
3535 return size;
3636}
3737
38- template <typename T = int >
38+ template <typename T = int64_t >
3939static inline T SizeFromAxis (const int axis, DDim dims) {
4040 T size = 1 ;
4141 for (int i = axis; i < dims.size (); i++) {
@@ -44,7 +44,7 @@ static inline T SizeFromAxis(const int axis, DDim dims) {
4444 return size;
4545}
4646
47- template <typename T = int >
47+ template <typename T = int64_t >
4848static inline T SizeOutAxis (const int axis, DDim dims) {
4949 T size = 1 ;
5050 for (int i = axis + 1 ; i < dims.size (); i++) {
You can’t perform that action at this time.
0 commit comments