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;