We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c74d11 commit 1206fe2Copy full SHA for 1206fe2
torch_ipex/csrc/aten_ipex_bridge.cpp
@@ -497,10 +497,6 @@ std::vector<at::Tensor> shallowFallbackToCPUTensorList(const at::TensorList& ten
497
498
499
void reorderTensorToScalarTypeForDNNL(const at::Tensor& ipexTensor, at::ScalarType dstScalarType) {
500
- if (ipexTensor.device().type() == at::DeviceType::CPU) {
501
- return reorderTensorToScalaraType(ipexTensor, dstScalarType);
502
- }
503
-
504
TORCH_CHECK(dstScalarType == at::kBFloat16 || dstScalarType == at::kFloat);
505
auto tensor_dtype = ipexTensor.scalar_type();
506
TORCH_CHECK(tensor_dtype == at::kBFloat16 || tensor_dtype == at::kFloat);
0 commit comments