Skip to content

Commit ec359a7

Browse files
committed
Adding back CONSTEXPR_EXCEPT_WIN_CUDA on pickler.h
1 parent e46b7b9 commit ec359a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/csrc/jit/serialization/pickler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ class TORCH_API Pickler {
209209
// the left of a '::', its type cannot be deduced by the compiler so one must
210210
// explicitly instantiate the template, i.e. push<int>(int) works, push(int)
211211
// does not)
212-
static constexpr size_t kBufferSize = 256;
212+
static CONSTEXPR_EXCEPT_WIN_CUDA size_t kBufferSize = 256;
213213
template <typename T>
214214
void push(typename std::common_type<T>::type value) {
215215
const char* begin = reinterpret_cast<const char*>(&value);

0 commit comments

Comments
 (0)