!32709 correct the cpu kernel factory error ionformation on branch 1.6
Merge pull request !32709 from 沈竞兴/r1.60408
This commit is contained in:
commit
c8092b7143
|
@ -90,10 +90,7 @@ void CPUKernelFactory::UpdateKernelAttrs(const std::string &kernel_name, const s
|
|||
std::vector<std::pair<KernelAttr, CPUKernelCreator>> attr_creators(attr_size);
|
||||
auto iter = name_to_attr_creator_.find(kernel_name);
|
||||
if (iter == name_to_attr_creator_.end()) {
|
||||
MS_LOG(EXCEPTION) << "For '" << kernel_name
|
||||
<< ", only support these types: Concat, Pack, Stack, Split, Transpose, Unpack, AddN, "
|
||||
"ConcatOffset or DynamicStitch currently, but got "
|
||||
<< kernel_name;
|
||||
MS_LOG(EXCEPTION) << "For CPU kernel, op[" << kernel_name << "] hasn't been supported, but was called.";
|
||||
}
|
||||
|
||||
if (attr_size <= iter->second.size()) {
|
||||
|
|
Loading…
Reference in New Issue