forked from mindspore-Ecosystem/mindspore
fix bug of softplus infer
This commit is contained in:
parent
df491ffe53
commit
872e4b97fa
|
@ -40,8 +40,8 @@ TypePtr SoftplusInferType(const PrimitivePtr &prim, const std::vector<AbstractBa
|
|||
auto prim_name = prim->name();
|
||||
// check
|
||||
std::set<TypePtr> valid_index_types = {kFloat16, kFloat32, kFloat64};
|
||||
auto x_type =
|
||||
CheckAndConvertUtils::CheckTensorTypeValid("x", input_args[0]->BuildType(), valid_index_types, prim_name);
|
||||
auto x_type = input_args[0]->BuildType();
|
||||
(void)CheckAndConvertUtils::CheckTensorTypeValid("x", x_type, valid_index_types, prim_name);
|
||||
return x_type;
|
||||
}
|
||||
} // namespace
|
||||
|
|
Loading…
Reference in New Issue