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.

参数

v[in] The primitive type value.

返回

The created Value object with the given primitive type value.