From a2456521054e43c71503730a874b35e9a77cf7a3 Mon Sep 17 00:00:00 2001 From: ilyashakhat Date: Mon, 15 Apr 2024 09:47:14 +0000 Subject: [PATCH] [typo] Warning message typo Signed-off-by: ilyashakhat --- torch_npu/csrc/aten/common/ToKernelNpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torch_npu/csrc/aten/common/ToKernelNpu.cpp b/torch_npu/csrc/aten/common/ToKernelNpu.cpp index 07da82019af..3e0fabb7093 100644 --- a/torch_npu/csrc/aten/common/ToKernelNpu.cpp +++ b/torch_npu/csrc/aten/common/ToKernelNpu.cpp @@ -136,7 +136,7 @@ at::Tensor NPUNativeFunctions::to( if (at::ScalarType::Double == dtype) { static auto warn_once = []() { std::cout << "Warning: Device do not support double dtype now, " \ - "dtype cast repalce with float." << std::endl; + "dtype cast replace with float." << std::endl; return true; }(); } -- Gitee