Template Function mindspore::api::MakeValue

Function Documentation

template<typename T, typename = typename std::enable_if_t<is_vector<T>::value, T>>
inline ValuePtr mindspore::api::MakeValue(const T &values)

Create a ValueSequence object from a vector of primitive type values.

Parameters

values[in] The vector of primitive values.

Returns

The created ValueSequence object.