MCPcopy Create free account
hub / github.com/alibaba/euler / GetNodeFloat32Feature

Function GetNodeFloat32Feature

euler/service/mock_api.cc:30–45  ·  view source on GitHub ↗

Get node feature

Source from the content-addressed store, hash-verified

28
29// Get node feature
30FloatFeatureVec GetNodeFloat32Feature(const NodeIdVec& node_ids,
31 const std::vector<int>& fids) {
32 FloatFeatureVec features(node_ids.size());
33 for (auto& feature : features) {
34 feature.resize(fids.size());
35 int i = 0;
36 for (auto& ff : feature) {
37 ff.resize(10);
38 for (auto& fff : ff) {
39 fff = fids[i] + 0.5;
40 }
41 i++;
42 }
43 }
44 return features;
45}
46
47FloatFeatureVec GetNodeFloat32Feature(
48 const NodeIdVec& node_ids, const std::vector<std::string*>& ft_names) {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected