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.

参数

values[in] The vector of primitive values.

返回

The created ValueSequence object.