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

Method GetFloat32FeatureValueNum

euler/core/graph/edge.h:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 float GetWeight() const {return weight_;}
48
49 virtual int32_t GetFloat32FeatureValueNum() const {
50 int32_t num = 1, pre = 0;
51 for (size_t i = 0; i < float_features_idx_.size(); ++i) {
52 num = std::max(float_features_idx_[i] - pre, num);
53 pre = float_features_idx_[i];
54 }
55 return num;
56 }
57
58 virtual int32_t GetUint64FeatureValueNum() const {
59 int32_t num = 1, pre = 0;

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected