We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e46b7b9 commit ec359a7Copy full SHA for ec359a7
torch/csrc/jit/serialization/pickler.h
@@ -209,7 +209,7 @@ class TORCH_API Pickler {
209
// the left of a '::', its type cannot be deduced by the compiler so one must
210
// explicitly instantiate the template, i.e. push<int>(int) works, push(int)
211
// does not)
212
- static constexpr size_t kBufferSize = 256;
+ static CONSTEXPR_EXCEPT_WIN_CUDA size_t kBufferSize = 256;
213
template <typename T>
214
void push(typename std::common_type<T>::type value) {
215
const char* begin = reinterpret_cast<const char*>(&value);
0 commit comments