提交 bdb7d0fd 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!2355 fix cpu sub op input not match

Merge pull request !2355 from dengwentao/fix_sub_op
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册