!48174 fix fill warning

Merge pull request !48174 from lianliguang/master
This commit is contained in:
i-robot 2023-01-30 06:20:24 +00:00 committed by Gitee
commit fdd9dcb992
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 0 additions and 4 deletions

View File

@ -198,10 +198,6 @@ ValuePtr FillInferValue(const PrimitivePtr &prim, const std::vector<AbstractBase
MS_EXCEPTION_IF_NULL(infered_type);
auto input_value_ptr = input_args[2]->BuildValue();
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;