diff --git a/torch_npu/csrc/framework/OpCommandBase.h b/torch_npu/csrc/framework/OpCommandBase.h index 927df7cc42acc5e7ee8112d6b3638a84a0ac1002..49f5a8374e172ac11db3457b1d25babddae5f310 100644 --- a/torch_npu/csrc/framework/OpCommandBase.h +++ b/torch_npu/csrc/framework/OpCommandBase.h @@ -139,7 +139,7 @@ public: graphCmd.AddInput(input, descName, realData); ) if (input.storage_offset() != 0) { - NPU_LOGW( + TORCH_WARN_ONCE( "[Check][offset] Check input storage_offset[%ld] = 0 failed, result is untrustworthy", input.storage_offset()); }