!49891 Fix CheckAndConvertToDynamicLenSequence error message typo

Merge pull request !49891 from LiangZhibo/message
This commit is contained in:
i-robot 2023-03-08 01:11:55 +00:00 committed by Gitee
commit 7408c24826
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 2 deletions

View File

@ -683,7 +683,7 @@ void AbstractSequence::CheckAndConvertToDynamicLenSequence() {
if (first_element_type_id != cur_element_type_id) {
MS_EXCEPTION(ValueError) << "In graph mode, the element type of dynamic length array must be the same."
<< "The element type do not match, can not convert to dynamic length sequence. "
<< "The first element type is: " << TypeIdToString(first_element_type_id) << "The "
<< "The 0th element type is: " << TypeIdToString(first_element_type_id) << ". The "
<< i << "th element type is: " << TypeIdToString(cur_element_type_id);
}
auto cur_element_shape = cur_element->BuildShape();
@ -691,7 +691,7 @@ void AbstractSequence::CheckAndConvertToDynamicLenSequence() {
if (*first_element_shape != *cur_element_shape) {
MS_EXCEPTION(ValueError) << "In graph mode, the element shape of dynamic length array must be the same."
<< "The element shape do not match, can not convert to dynamic length sequence. "
<< "The first element shape is: " << first_element_shape->ToString() << "The " << i
<< "The 0th element shape is: " << first_element_shape->ToString() << ". The " << i
<< "th element shape is: " << cur_element_shape->ToString();
}
}