Browse Source

!1772 KernelAttr::all_same should init

Merge pull request !1772 from sunsuodong/var_init
tags/v0.5.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
6796705c0e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/device/cpu/kernel_select_cpu.h

+ 1
- 1
mindspore/ccsrc/device/cpu/kernel_select_cpu.h View File

@@ -33,7 +33,7 @@ void SetKernelInfo(const CNodePtr &apply_kernel_ptr);
class KernelAttr {
public:
using DataType = std::pair<TypeId, std::string>;
KernelAttr() = default;
KernelAttr() : all_same_(0) {}
~KernelAttr() = default;

KernelAttr &AddInputAttr(const TypeId &ms_type, const std::string &format = kOpFormat_DEFAULT) {


Loading…
Cancel
Save