Skip to content

Commit

Permalink
Fix typos in runtime comments (#9726)
Browse files Browse the repository at this point in the history
Fix typos in comments about signal handling and entries in the runtime
code.

Signed-off-by: Gustavo Romero <[email protected]>
  • Loading branch information
gromero authored Dec 14, 2021
1 parent f0ae9d3 commit 1728782
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions include/tvm/runtime/registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions src/runtime/registry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,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.
*/
Expand Down Expand Up @@ -176,7 +176,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<std::string> ret_vec_str;
Expand Down

0 comments on commit 1728782

Please sign in to comment.