mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Revert "[Intel GPU] Allow XPU backend in Depthwise_conv2d&3d operators (#149114)"
This reverts commit 08831f30bb.
Reverted https://github.com/pytorch/pytorch/pull/149114 on behalf of https://github.com/guangyey due to CI is broken ([comment](https://github.com/pytorch/pytorch/pull/149114#issuecomment-2819890341))
This commit is contained in:
parent
a02eae8142
commit
40cf49d460
|
|
@ -607,7 +607,7 @@ struct ConvParams {
|
|||
// nInputPlane and nInputPlane == nOutputPlane (the latter due to the lack of
|
||||
// a depthwise multiplier)
|
||||
bool is_depthwise(const at::Tensor& input, const at::Tensor& weight) const {
|
||||
return (input.is_cuda() || input.is_xpu()) &&
|
||||
return input.is_cuda() &&
|
||||
!transposed &&
|
||||
(input.ndimension() == 4 || input.ndimension() == 5) &&
|
||||
at::symint::size<T>(input, 1) == groups &&
|
||||
|
|
@ -1223,12 +1223,6 @@ static ConvBackend _select_conv_backend(
|
|||
return ConvBackend::Cudnn;
|
||||
} else if (params.use_miopen(input, weight, bias_sizes_opt.has_value())) {
|
||||
return ConvBackend::MiopenDepthwise;
|
||||
} else if (params.use_mkldnn(input, weight)) {
|
||||
if (params.transposed) {
|
||||
return ConvBackend::MkldnnTranspose;
|
||||
} else {
|
||||
return ConvBackend::Mkldnn;
|
||||
}
|
||||
} else {
|
||||
if (input.ndimension() == 4) {
|
||||
return ConvBackend::CudaDepthwise2d;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user