Commit 9c1195eb by Liang ZOU Committed by Tianqi Chen

[typo] fucn => func (#2240)

parent 4e21982b
...@@ -215,7 +215,7 @@ NNVM_REGISTER_PASS(InferShape) ...@@ -215,7 +215,7 @@ NNVM_REGISTER_PASS(InferShape)
.set_change_graph(false) .set_change_graph(false)
.provide_graph_attr("shape"); .provide_graph_attr("shape");
// inference fucntion for same type // inference function for same type
inline bool SameType(const NodeAttrs& attrs, inline bool SameType(const NodeAttrs& attrs,
std::vector<int> *iattr, std::vector<int> *iattr,
std::vector<int> *oattr) { std::vector<int> *oattr) {
......
...@@ -141,7 +141,7 @@ class FuncType(Type): ...@@ -141,7 +141,7 @@ class FuncType(Type):
This is the type assigned to functions in Relay. They consist of This is the type assigned to functions in Relay. They consist of
a list of type parameters which enable the definition of generic a list of type parameters which enable the definition of generic
fucntions, a set of type constraints which we omit for the time functions, a set of type constraints which we omit for the time
being, a sequence of argument types, and a return type. being, a sequence of argument types, and a return type.
We informally write them as: We informally write them as:
......
...@@ -121,7 +121,7 @@ class FuncType(Type): ...@@ -121,7 +121,7 @@ class FuncType(Type):
This is the type assigned to functions in Relay. They consist of This is the type assigned to functions in Relay. They consist of
a list of type parameters which enable the definition of generic a list of type parameters which enable the definition of generic
fucntions, a set of type constraints which we omit for the time functions, a set of type constraints which we omit for the time
being, a sequence of argument types, and a return type. being, a sequence of argument types, and a return type.
We informally write them as: We informally write them as:
......
...@@ -750,7 +750,7 @@ extern "C" { ...@@ -750,7 +750,7 @@ extern "C" {
) -> ::std::os::raw::c_int; ) -> ::std::os::raw::c_int;
} }
extern "C" { extern "C" {
/// \brief Simple static initialization fucntion. /// \brief Simple static initialization function.
/// Run f once and set handle to be not null. /// Run f once and set handle to be not null.
/// This function is mainly used for test purpose. /// This function is mainly used for test purpose.
/// ///
......
...@@ -49,7 +49,7 @@ TVM_REGISTER_API("_context_test") ...@@ -49,7 +49,7 @@ TVM_REGISTER_API("_context_test")
*ret = ctx; *ret = ctx;
}); });
// internal fucntion used for debug and testing purposes // internal function used for debug and testing purposes
TVM_REGISTER_API("_ndarray_use_count") TVM_REGISTER_API("_ndarray_use_count")
.set_body([](TVMArgs args, TVMRetValue *ret) { .set_body([](TVMArgs args, TVMRetValue *ret) {
runtime::NDArray nd = args[0]; runtime::NDArray nd = args[0];
......
...@@ -221,7 +221,7 @@ class ScheduleGetter : ...@@ -221,7 +221,7 @@ class ScheduleGetter :
class CompileEngineImpl : public CompileEngineNode { class CompileEngineImpl : public CompileEngineNode {
public: public:
// Lower the fucntion. // Lower the function.
CachedFunc Lower(const CCacheKey& key) { CachedFunc Lower(const CCacheKey& key) {
return LowerInternal(key)->cached_func; return LowerInternal(key)->cached_func;
} }
......
...@@ -141,7 +141,7 @@ class CUDAModuleNode : public runtime::ModuleNode { ...@@ -141,7 +141,7 @@ class CUDAModuleNode : public runtime::ModuleNode {
std::mutex mutex_; std::mutex mutex_;
}; };
// a wrapped function class to get packed fucn. // a wrapped function class to get packed func.
class CUDAWrappedFunc { class CUDAWrappedFunc {
public: public:
// initialize the CUDA function. // initialize the CUDA function.
......
...@@ -163,7 +163,7 @@ class MetalModuleNode final :public runtime::ModuleNode { ...@@ -163,7 +163,7 @@ class MetalModuleNode final :public runtime::ModuleNode {
std::mutex mutex_; std::mutex mutex_;
}; };
// a wrapped function class to get packed fucn. // a wrapped function class to get packed func.
class MetalWrappedFunc { class MetalWrappedFunc {
public: public:
// initialize the METAL function. // initialize the METAL function.
......
...@@ -123,7 +123,7 @@ class ROCMModuleNode : public runtime::ModuleNode { ...@@ -123,7 +123,7 @@ class ROCMModuleNode : public runtime::ModuleNode {
std::mutex mutex_; std::mutex mutex_;
}; };
// a wrapped function class to get packed fucn. // a wrapped function class to get packed func.
class ROCMWrappedFunc { class ROCMWrappedFunc {
public: public:
// initialize the ROCM function. // initialize the ROCM function.
......
...@@ -223,7 +223,7 @@ class VulkanModuleNode final :public runtime::ModuleNode { ...@@ -223,7 +223,7 @@ class VulkanModuleNode final :public runtime::ModuleNode {
std::mutex mutex_; std::mutex mutex_;
}; };
// a wrapped function class to get packed fucn. // a wrapped function class to get packed func.
class VulkanWrappedFunc { class VulkanWrappedFunc {
public: public:
// initialize the VULKAN function. // initialize the VULKAN function.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment