From 97f1770e5267ef7e733b7f877ab26a4e748c7292 Mon Sep 17 00:00:00 2001 From: lianliguang Date: Mon, 30 Jan 2023 09:29:41 +0800 Subject: [PATCH] remove warning for fill ops --- mindspore/core/ops/fill.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mindspore/core/ops/fill.cc b/mindspore/core/ops/fill.cc index 3a4e3ebca2d..072f8cbfa58 100644 --- a/mindspore/core/ops/fill.cc +++ b/mindspore/core/ops/fill.cc @@ -198,10 +198,6 @@ ValuePtr FillInferValue(const PrimitivePtr &prim, const std::vectorBuildValue(); auto input_value_type_id = input_args[2]->BuildType()->type_id(); - if (input_value_type_id != infered_type->type_id()) { - MS_LOG(WARNING) << "value type is not same as given dtype, value type id is " << input_value_type_id - << " and given dtype id is " << infered_type->type_id(); - } auto tmp_shape = FillInferShape(prim, input_args); if (tmp_shape->IsDynamic()) { return kAnyValue;