!2355 fix cpu sub op input not match

Merge pull request !2355 from dengwentao/fix_sub_op
This commit is contained in:
mindspore-ci-bot 2020-06-20 11:25:49 +08:00 committed by Gitee
commit bdb7d0fd01
1 changed files with 3 additions and 1 deletions

View File

@ -36,7 +36,9 @@ class SubCPUKernel : public CPUKernel {
int offset_;
};
MS_REG_CPU_KERNEL(Sub, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTypeInt32), SubCPUKernel);
MS_REG_CPU_KERNEL(
Sub, KernelAttr().AddInputAttr(kNumberTypeInt32).AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTypeInt32),
SubCPUKernel);
} // namespace kernel
} // namespace mindspore