Template Function mindspore::MakeValue

Function Documentation

template<typename T, typename U = typename std::enable_if<is_vector<T>::value, typename T::value_type>::type>
ValuePtr mindspore::MakeValue(const T &vec)

Convert other type to ValueTuple.

Parameters

vec[in] Define the object to be converted.

Returns

ValuePtr a ValueTuple object.