Skip to content

Commit 3576c02

Browse files
Bump PyTorch and TorchAO pins for dev20261004 (pytorch#23406)
Automated weekly PyTorch and TorchAO pin bump. Updates the PyTorch nightly to dev20261004, advances the corresponding source pin, and syncs the affected portable c10 header.
1 parent 09e65f5 commit 3576c02

3 files changed

Lines changed: 19 additions & 14 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2bb2a9c522e7f944bf98c02c9b85fd959fa0bf0b
1+
e91899ca45f99811049ac7d539820f92a9acddde

‎runtime/core/portable_type/c10/torch/headeronly/util/irange.h‎

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,29 @@ struct integer_iterator {
2525
using pointer = I*;
2626
using reference = I&;
2727

28-
explicit constexpr integer_iterator(I val) : value(val) {}
28+
C10_ALWAYS_INLINE explicit constexpr integer_iterator(I val) : value(val) {}
2929

30-
constexpr I operator*() const {
30+
C10_ALWAYS_INLINE constexpr I operator*() const {
3131
return value;
3232
}
3333

34-
constexpr I const* operator->() const {
34+
C10_ALWAYS_INLINE constexpr I const* operator->() const {
3535
return &value;
3636
}
3737

38-
constexpr integer_iterator& operator++() {
38+
C10_ALWAYS_INLINE constexpr integer_iterator& operator++() {
3939
++value;
4040
return *this;
4141
}
4242

43-
constexpr integer_iterator operator++(int) {
43+
C10_ALWAYS_INLINE constexpr integer_iterator operator++(int) {
4444
const auto copy = *this;
4545
++*this;
4646
return copy;
4747
}
4848

49-
constexpr bool operator==(const integer_iterator& other) const {
49+
C10_ALWAYS_INLINE constexpr bool operator==(
50+
const integer_iterator& other) const {
5051
if constexpr (one_sided) {
5152
// Range-for loops' end test is `begin != end`, not `begin <
5253
// end`. To handle `irange(n)` where n < 0 (which should be
@@ -65,7 +66,8 @@ struct integer_iterator {
6566
return false; // Horrible hack
6667
}
6768

68-
constexpr bool operator!=(const integer_iterator& other) const {
69+
C10_ALWAYS_INLINE constexpr bool operator!=(
70+
const integer_iterator& other) const {
6971
return !(*this == other);
7072
}
7173

@@ -81,12 +83,13 @@ template <
8183
std::enable_if_t<std::is_integral_v<I>, bool> = true>
8284
struct integer_range {
8385
public:
84-
constexpr integer_range(I begin, I end) : begin_(begin), end_(end) {}
86+
C10_ALWAYS_INLINE constexpr integer_range(I begin, I end)
87+
: begin_(begin), end_(end) {}
8588
using iterator = detail::integer_iterator<I, one_sided>;
86-
constexpr iterator begin() const {
89+
C10_ALWAYS_INLINE constexpr iterator begin() const {
8790
return begin_;
8891
}
89-
constexpr iterator end() const {
92+
C10_ALWAYS_INLINE constexpr iterator end() const {
9093
return end_;
9194
}
9295

@@ -104,7 +107,9 @@ template <
104107
typename Integer2,
105108
std::enable_if_t<std::is_integral_v<Integer1>, bool> = true,
106109
std::enable_if_t<std::is_integral_v<Integer2>, bool> = true>
107-
constexpr integer_range<Integer2> irange(Integer1 begin, Integer2 end) {
110+
C10_ALWAYS_INLINE constexpr integer_range<Integer2> irange(
111+
Integer1 begin,
112+
Integer2 end) {
108113
// If end<=begin then the range is empty; we can achieve this effect by
109114
// choosing the larger of {begin, end} as the loop terminator
110115
return {
@@ -117,7 +122,7 @@ constexpr integer_range<Integer2> irange(Integer1 begin, Integer2 end) {
117122
template <
118123
typename Integer,
119124
std::enable_if_t<std::is_integral_v<Integer>, bool> = true>
120-
constexpr integer_range<Integer, true> irange(Integer end) {
125+
C10_ALWAYS_INLINE constexpr integer_range<Integer, true> irange(Integer end) {
121126
return {Integer(), end};
122127
}
123128

‎torch_pin.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
TORCH_VERSION = "2.14.0"
2-
NIGHTLY_VERSION = "dev20260913"
2+
NIGHTLY_VERSION = "dev20261004"

0 commit comments

Comments
 (0)