Skip to content

Commit

Permalink
[typo] fucn => func (apache#2240)
Browse files Browse the repository at this point in the history
  • Loading branch information
liangdzou authored and tqchen committed Dec 6, 2018
1 parent 4e21982 commit 9c1195e
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion nnvm/src/pass/infer_shape_type.cc
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ NNVM_REGISTER_PASS(InferShape)
.set_change_graph(false)
.provide_graph_attr("shape");

// inference fucntion for same type
// inference function for same type
inline bool SameType(const NodeAttrs& attrs,
std::vector<int> *iattr,
std::vector<int> *oattr) {
Expand Down
2 changes: 1 addition & 1 deletion python/tvm/relay/ty.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class FuncType(Type):
This is the type assigned to functions in Relay. They consist of
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.
We informally write them as:
Expand Down
2 changes: 1 addition & 1 deletion python/tvm/relay/ty.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class FuncType(Type):
This is the type assigned to functions in Relay. They consist of
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.
We informally write them as:
Expand Down
2 changes: 1 addition & 1 deletion rust/src/runtime/c_runtime_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ extern "C" {
) -> ::std::os::raw::c_int;
}
extern "C" {
/// \brief Simple static initialization fucntion.
/// \brief Simple static initialization function.
/// Run f once and set handle to be not null.
/// This function is mainly used for test purpose.
///
Expand Down
2 changes: 1 addition & 1 deletion src/api/api_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ TVM_REGISTER_API("_context_test")
*ret = ctx;
});

// internal fucntion used for debug and testing purposes
// internal function used for debug and testing purposes
TVM_REGISTER_API("_ndarray_use_count")
.set_body([](TVMArgs args, TVMRetValue *ret) {
runtime::NDArray nd = args[0];
Expand Down
2 changes: 1 addition & 1 deletion src/relay/backend/compile_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class ScheduleGetter :

class CompileEngineImpl : public CompileEngineNode {
public:
// Lower the fucntion.
// Lower the function.
CachedFunc Lower(const CCacheKey& key) {
return LowerInternal(key)->cached_func;
}
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/cuda/cuda_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class CUDAModuleNode : public runtime::ModuleNode {
std::mutex mutex_;
};

// a wrapped function class to get packed fucn.
// a wrapped function class to get packed func.
class CUDAWrappedFunc {
public:
// initialize the CUDA function.
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/metal/metal_module.mm
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ void SaveToBinary(dmlc::Stream* stream) final {
std::mutex mutex_;
};

// a wrapped function class to get packed fucn.
// a wrapped function class to get packed func.
class MetalWrappedFunc {
public:
// initialize the METAL function.
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/rocm/rocm_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class ROCMModuleNode : public runtime::ModuleNode {
std::mutex mutex_;
};

// a wrapped function class to get packed fucn.
// a wrapped function class to get packed func.
class ROCMWrappedFunc {
public:
// initialize the ROCM function.
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/vulkan/vulkan_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class VulkanModuleNode final :public runtime::ModuleNode {
std::mutex mutex_;
};

// a wrapped function class to get packed fucn.
// a wrapped function class to get packed func.
class VulkanWrappedFunc {
public:
// initialize the VULKAN function.
Expand Down

0 comments on commit 9c1195e

Please sign in to comment.