Browse Source

fix sub input not match

tags/v0.5.0-beta
dengwentao 5 years ago
parent
commit
92744f1301
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      mindspore/ccsrc/kernel/cpu/sub_cpu_kernel.h

+ 3
- 1
mindspore/ccsrc/kernel/cpu/sub_cpu_kernel.h 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



Loading…
Cancel
Save