Template Function mindspore::api::NewValueNode

Function Documentation

template<typename T, typename = typename std::enable_if_t<std::is_base_of_v<Value, T>, T>>
inline ValueNodePtr mindspore::api::NewValueNode(const SharedPtr<T> &value)

Create a ValueNode with the given value.

参数

value[in] The given value.

返回

The created ValueNode.