Template Function mindspore::api::utils::cast

Function Documentation

template<typename T, typename U = typename ImmTrait<T>::type>
inline T mindspore::api::utils::cast(const ValuePtr &ptr)

Cast the given value to a C++ value.

参数

ptr[in] The pointer to the value to be casted.

返回

The C++ value according the input value.