Skip to content

Commit cd20c9c

Browse files
committed
Merge branch 'master' into fix_dil_at_strides_issue
2 parents 86ea015 + de92da8 commit cd20c9c

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ Intel Extension for PyTorch is a Python package to extend official PyTorch. It i
1818
git clone --recursive https://github.com/pytorch/pytorch
1919
cd pytorch
2020

21-
# if you are updating an existing checkout
21+
# checkout source code to the specified version
22+
git checkout v1.5.0-rc3
23+
24+
# update submodules for the specified pytorch version
2225
git submodule sync
2326
git submodule update --init --recursive
2427

25-
# checkout source code to the specified version
26-
git checkout v1.5.0-rc3
28+
2729
```
2830

2931
2. Get Intel PyTorch Extension source

torch_ipex/csrc/aten_ipex_bridge.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,11 @@ void reorderTensorToScalaraType(const at::Tensor& ipexTensor, at::ScalarType dst
549549
if (tensor_dtype == dstScalarType)
550550
return;
551551

552-
if (!check_tensor_own_whole_storage(ipexTensor))
552+
if (!check_tensor_own_whole_storage(ipexTensor)) {
553553
return;
554+
} else {
555+
TORCH_INTERNAL_ASSERT(false);
556+
}
554557

555558
if (check_tensor_own_shade_context(ipexTensor)) {
556559
// Shade data context has been attached

0 commit comments

Comments
 (0)