mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Revert "enable compiled autograd on CPU windows (#158432)"
This reverts commit a369350065493109d1abfbb994695777ab11bcf4. Reverted https://github.com/pytorch/pytorch/pull/158432 on behalf of https://github.com/atalman due to Broke audio cuda windows builds see: https://github.com/pytorch/audio/issues/3992 ([comment](https://github.com/pytorch/pytorch/pull/158432#issuecomment-3119912177))
This commit is contained in:
@ -1106,16 +1106,14 @@ struct IValuePacker {
|
||||
// That's what the TypePtr is for: it contains the information to do the
|
||||
// parsing. See torch::jit::toIValue for more information.
|
||||
static at::TypePtr packed_type() {
|
||||
#if defined(_WIN32)
|
||||
#if defined(USE_CUDA) || defined(USE_ROCM)
|
||||
#ifdef _WIN32
|
||||
// NB: the if-constexpr usage triggers compilation errors on Windows
|
||||
// with certain compiler settings
|
||||
// (see https://github.com/pytorch/pytorch/pull/144707 for examples).
|
||||
// It's not clear what the problem is, so we're going to ignore it for now.
|
||||
TORCH_CHECK_NOT_IMPLEMENTED(
|
||||
false, "torch.compile not supported on Windows GPU");
|
||||
#endif
|
||||
#endif
|
||||
false, "torch.compile not supported on Windows");
|
||||
#else
|
||||
if constexpr (::std::is_same_v<T, at::Tensor>) {
|
||||
return at::TensorType::get();
|
||||
} else if constexpr (::std::is_same_v<T, int64_t>) {
|
||||
@ -1155,6 +1153,7 @@ struct IValuePacker {
|
||||
false, "IValuePacker not implemented for type");
|
||||
return at::NoneType::get();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user