diff --git a/mindspore/ccsrc/device/cpu/kernel_select_cpu.h b/mindspore/ccsrc/device/cpu/kernel_select_cpu.h index d2138ec66dae28e3f3ec69c3d85326683fbf169f..b707c55e2c1582c582a74add86fcc2e62b4d00bb 100644 --- a/mindspore/ccsrc/device/cpu/kernel_select_cpu.h +++ b/mindspore/ccsrc/device/cpu/kernel_select_cpu.h @@ -33,7 +33,7 @@ void SetKernelInfo(const CNodePtr &apply_kernel_ptr); class KernelAttr { public: using DataType = std::pair; - KernelAttr() = default; + KernelAttr() : all_same_(0) {} ~KernelAttr() = default; KernelAttr &AddInputAttr(const TypeId &ms_type, const std::string &format = kOpFormat_DEFAULT) {