From 8278db9d9cd51208905cacb3b7747772be0eb9b3 Mon Sep 17 00:00:00 2001 From: jjfeing Date: Mon, 15 Jun 2020 10:03:18 +0800 Subject: [PATCH] FormatAgnostic without checking format in kernel build info --- mindspore/ccsrc/kernel/kernel_build_info.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mindspore/ccsrc/kernel/kernel_build_info.cc b/mindspore/ccsrc/kernel/kernel_build_info.cc index 4ad75dc8a4..c912a0c199 100644 --- a/mindspore/ccsrc/kernel/kernel_build_info.cc +++ b/mindspore/ccsrc/kernel/kernel_build_info.cc @@ -105,7 +105,12 @@ bool KernelBuildInfo::operator==(const KernelBuildInfo &other) const { return false; } if (inputs_format_ != other.inputs_format_ || outputs_format_ != other.outputs_format_) { - return false; + if (op_pattern_ != kFormatAgnosticPattern) { + return false; + } else { + MS_LOG(INFO) << "this kernel build info:" << this->ToString() + << ", other kernel build info: " << other.ToString(); + } } return !(inputs_device_type_ != other.inputs_device_type_ || outputs_device_type_ != other.outputs_device_type_); }