Template Function mindspore::api::GetValue
Defined in File value.h
Function Documentation
-
template<typename T, typename S = typename std::decay_t<T>, typename U = typename std::enable_if_t<is_vector<S>::value, typename S::value_type>>
std::vector<U> mindspore::api::GetValue(const ValuePtr &value) Get element values from a ValueSequence object.
- Parameters
value – [in] The pointer to the ValueSequence object.
- Returns
The values as a vector, empty if the input is not a ValueSequence.