Template Function mindspore::dyn_cast

Function Documentation

template<typename T, typename U, typename std::enable_if<std::is_base_of<Base, T>::value && std::is_base_of<Base, U>::value, T>::type* = nullptr>
inline std::shared_ptr<T> mindspore::dyn_cast(const std::shared_ptr<U> &r)