Skip to content

Commit 0db0e60

Browse files
committed
fix typo
1 parent 8397f24 commit 0db0e60

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

torch_ipex/csrc/aten_ipex_bridge.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void reorderDilTensorToPublic(const at::Tensor& ipexTensor) {
106106
}
107107

108108

109-
void attachShadeDataConext(const at::Tensor& tensor) {
109+
void attachShadeDataContext(const at::Tensor& tensor) {
110110
auto tensor_storage_impl = tensor.storage().unsafeGetStorageImpl();
111111
auto& data_ptr = tensor_storage_impl->data_ptr();
112112

@@ -272,7 +272,7 @@ at::Tensor shallowUpgradeToDPCPPTensor(const at::Tensor& cpuTensor) {
272272
CHECK_TENSOR_CRITICAL(_tensor, cpuTensor, true);
273273
//TODO: Cannot set reserved_
274274
// dest_impl->reserved_ = src_impl->reserved_;
275-
attachShadeDataConext(_tensor);
275+
attachShadeDataContext(_tensor);
276276
return _tensor;
277277
}
278278
}
@@ -303,7 +303,7 @@ at::Tensor shallowUpgradeToDPCPPTensorA(const at::Tensor& ipexTensor, const at::
303303
ipex_impl->copy_auto_grad(cpuTensor.unsafeGetTensorImpl());
304304
CHECK_TENSOR_CRITICAL(_tensor, cpuTensor, true);
305305

306-
attachShadeDataConext(_tensor);
306+
attachShadeDataContext(_tensor);
307307
return _tensor;
308308
}
309309

@@ -388,7 +388,7 @@ const at::Tensor& shallowUpgradeToDPCPPTensorAW(const at::Tensor& ipexTensor, co
388388
ipex_tensor_impl->copy_meta_info(cpuTensor.unsafeGetTensorImpl());
389389
ipex_tensor_impl->copy_auto_grad(cpuTensor.unsafeGetTensorImpl());
390390
CHECK_TENSOR_CRITICAL(ipexTensor, cpuTensor, true);
391-
attachShadeDataConext(ipexTensor);
391+
attachShadeDataContext(ipexTensor);
392392
return ipexTensor;
393393
}
394394
}

torch_ipex/csrc/aten_ipex_bridge.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace bridge {
1313
at::Tensor shallowFallbackToCPUTensor(const at::Tensor& ipexTensor);
1414
std::vector<at::Tensor> shallowFallbackToCPUTensorList(const at::TensorList&);
1515

16-
void attachShadeDataConext(const at::Tensor& tensor);
16+
void attachShadeDataContext(const at::Tensor& tensor);
1717

1818
/**
1919
* Reorder the DNNL tensor to the public format if the input tensor contains DNNL tensor.

0 commit comments

Comments
 (0)