Template Function mindspore::api::MakeValue

Function Documentation

template<typename T, typename U = typename ImmTrait<T>::type::element_type>
inline ValuePtr mindspore::api::MakeValue(T v)

Create a Value object from a primitive type value.

Parameters

v[in] The primitive type value.

Returns

The created Value object with the given primitive type value.