Commit 151f550b by Haichen Shen Committed by Tianqi Chen

Fix typos (#2367)

parent f3cf8f2c
...@@ -92,7 +92,7 @@ class OpPattern(object): ...@@ -92,7 +92,7 @@ class OpPattern(object):
BROADCAST = 1 BROADCAST = 1
# Injective mapping # Injective mapping
INJECTIVE = 2 INJECTIVE = 2
# Comunication # Communication
COMM_REDUCE = 3 COMM_REDUCE = 3
# Complex op, can still fuse ewise into it # Complex op, can still fuse ewise into it
OUT_ELEMWISE_FUSABLE = 4 OUT_ELEMWISE_FUSABLE = 4
......
...@@ -291,7 +291,7 @@ class CompileEngineImpl : public CompileEngineNode { ...@@ -291,7 +291,7 @@ class CompileEngineImpl : public CompileEngineNode {
auto spair = CreateSchedule(key->source_func, key->target); auto spair = CreateSchedule(key->source_func, key->target);
auto cache_node = make_node<CachedFuncNode>( auto cache_node = make_node<CachedFuncNode>(
*(spair.second.operator->())); *(spair.second.operator->()));
cache_node->func_name = GetUniqeName(cache_node->func_name); cache_node->func_name = GetUniqueName(cache_node->func_name);
// NOTE: array will copy on write. // NOTE: array will copy on write.
Array<Tensor> all_args = cache_node->inputs; Array<Tensor> all_args = cache_node->inputs;
for (Tensor arg : cache_node->outputs) { for (Tensor arg : cache_node->outputs) {
...@@ -302,7 +302,7 @@ class CompileEngineImpl : public CompileEngineNode { ...@@ -302,7 +302,7 @@ class CompileEngineImpl : public CompileEngineNode {
cache_node->funcs = (*f)( cache_node->funcs = (*f)(
spair.first, all_args, cache_node->func_name, key->source_func); spair.first, all_args, cache_node->func_name, key->source_func);
} else { } else {
LOG(FATAL) << "relay.backend._lower is not registred"; LOG(FATAL) << "relay.backend.lower is not registred";
} }
value->cached_func = CachedFunc(cache_node); value->cached_func = CachedFunc(cache_node);
return value; return value;
...@@ -312,7 +312,7 @@ class CompileEngineImpl : public CompileEngineNode { ...@@ -312,7 +312,7 @@ class CompileEngineImpl : public CompileEngineNode {
* \param name The orginal name. * \param name The orginal name.
* \return Updated name which is unique. * \return Updated name which is unique.
*/ */
std::string GetUniqeName(std::string name) { std::string GetUniqueName(std::string name) {
for (size_t i = 0; i < name.length(); ++i) { for (size_t i = 0; i < name.length(); ++i) {
if (name[i] == '.') name[i] = '_'; if (name[i] == '.') name[i] = '_';
} }
......
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