MCPcopy Create free account
hub / github.com/alibaba/graph-learn / add_dag_node_int_vector_params

Function add_dag_node_int_vector_params

graphlearn/python/c/py_wrapper.h:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void add_dag_node_int_vector_params(DagNodeDef* node,
57 const std::string& name,
58 std::vector<int32_t> values) {
59 TensorValue* param = node->add_params();
60 param->set_name(name);
61 param->set_dtype(kInt32);
62 param->set_length(values.size());
63 for (auto& v: values) {
64 param->add_int32_values(v);
65 }
66}
67
68void add_dag_node_float_vector_params(DagNodeDef* node,
69 const std::string& name,

Callers 1

init_client_moduleFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected