From 057e0261956b138c3c77bb2600e53d5ffa2fda97 Mon Sep 17 00:00:00 2001 From: Gustavo Romero Date: Mon, 13 Dec 2021 21:39:26 -0300 Subject: [PATCH] Fix typos in runtime comments (#9726) Fix typos in comments about signal handling and entries in the runtime code. Signed-off-by: Gustavo Romero --- include/tvm/runtime/registry.h | 4 ++-- src/runtime/registry.cc | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/tvm/runtime/registry.h b/include/tvm/runtime/registry.h index 9e363d7b00b8..28fad3510064 100644 --- a/include/tvm/runtime/registry.h +++ b/include/tvm/runtime/registry.h @@ -56,9 +56,9 @@ namespace runtime { * \brief Check if signals have been sent to the process and if so * invoke the registered signal handler in the frontend environment. * - * When runnning TVM in another langugage(python), the signal handler + * When running TVM in another language (Python), the signal handler * may not be immediately executed, but instead the signal is marked - * in the interpreter state(to ensure non-blocking of the signal handler). + * in the interpreter state (to ensure non-blocking of the signal handler). * * This function can be explicitly invoked to check the cached signal * and run the related processing if a signal is marked. diff --git a/src/runtime/registry.cc b/src/runtime/registry.cc index 85b89a73fd71..7058ca21ddf9 100644 --- a/src/runtime/registry.cc +++ b/src/runtime/registry.cc @@ -134,9 +134,9 @@ class EnvCAPIRegistry { * \brief Callback to check if signals have been sent to the process and * if so invoke the registered signal handler in the frontend environment. * - * When runnning TVM in another langugage(python), the signal handler + * When running TVM in another language (Python), the signal handler * may not be immediately executed, but instead the signal is marked - * in the interpreter state(to ensure non-blocking of the signal handler). + * in the interpreter state (to ensure non-blocking of the signal handler). * * \return 0 if no error happens, -1 if error happens. */ @@ -190,7 +190,7 @@ void EnvCheckSignals() { EnvCAPIRegistry::Global()->CheckSignals(); } } // namespace runtime } // namespace tvm -/*! \brief entry to to easily hold returning information */ +/*! \brief entry to easily hold returning information */ struct TVMFuncThreadLocalEntry { /*! \brief result holder for returning strings */ std::vector ret_vec_str;