forked from mindspore-Ecosystem/mindspore
!21252 fix bug of unique
Merge pull request !21252 from lianliguang/fix-bug-of-unique
This commit is contained in:
commit
bb0728d25b
|
@ -140,7 +140,7 @@ AbstractBasePtr InferImplUnique(const AnalysisEnginePtr &, const PrimitivePtr &p
|
|||
|
||||
auto shape = input->shape();
|
||||
MS_EXCEPTION_IF_NULL(shape);
|
||||
if (shape->shape().empty()) {
|
||||
if (shape->shape().size() != 1) {
|
||||
MS_LOG(EXCEPTION) << "Rank of " << op_name << "'s input must be 1.";
|
||||
}
|
||||
ShapeVector ids_shape = {Shape::SHP_ANY};
|
||||
|
|
Loading…
Reference in New Issue