forked from mindspore-Ecosystem/mindspore
fix unique shape infer bug
This commit is contained in:
parent
581b4b65e4
commit
b7bcb2ee29
|
@ -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