Fix three typos (#5620)
authorLiyong Zeng <littlefish0123@users.noreply.github.com>
Tue, 19 May 2020 14:10:01 +0000 (22:10 +0800)
committerGitHub <noreply@github.com>
Tue, 19 May 2020 14:10:01 +0000 (07:10 -0700)
Co-authored-by: Zeng Liyong <liyong.zeng@streamcomputing.com>
include/tvm/runtime/c_backend_api.h
include/tvm/runtime/object.h

index 741b280..40cef83 100644 (file)
@@ -71,7 +71,7 @@ TVM_DLL int TVMBackendRegisterSystemLibSymbol(const char* name, void* ptr);
 /*!
  * \brief Backend function to allocate temporal workspace.
  *
- * \note The result allocate spaced is ensured to be aligned to kTempAllocaAlignment.
+ * \note The result allocated space is ensured to be aligned to kTempAllocaAlignment.
  *
  * \param nbytes The size of the space requested.
  * \param device_type The device type which the space will be allocated.
@@ -142,8 +142,8 @@ TVM_DLL int TVMBackendParallelBarrier(int task_id, TVMParallelGroupEnv* penv);
  *  Run f once and set handle to be not null.
  *  This function is mainly used for test purpose.
  *
- * \param handle An global address to indicate f
- * \param f The function to be ran
+ * \param handle A global address to indicate f
+ * \param f The function to be run
  * \param cdata The closure data to pass to the function.
  * \param nbytes Number of bytes in the closure data.
  * \return 0 when no error is thrown, -1 when failure happens
index 7d912c5..51b1372 100644 (file)
@@ -86,7 +86,7 @@ struct TypeIndex {
  *       The unique string identifier of tyep type.
  * - _type_final:
  *       Whether the type is terminal type(there is no subclass of the type in the object system).
- *       This field is automatically set by marco TVM_DECLARE_FINAL_OBJECT_INFO
+ *       This field is automatically set by macro TVM_DECLARE_FINAL_OBJECT_INFO
  *       It is still OK to sub-class a terminal object type T and construct it using make_object.
  *       But IsInstance check will only show that the object type is T(instead of the sub-class).
  *