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.

Parameters

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

Returns

The C++ value according the input value.