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

Function get_binary_feature

tf_euler/python/euler_ops/feature_ops.py:158–171  ·  view source on GitHub ↗

Fetch binary features of nodes. Args: nodes: A 1-d `Tensor` of `int64`. feature_names: A list of `int`. Specify uint64 feature ids in graph to fetch features for nodes. Return: A list of `String Tensor` with the same length as `feature_names`.

(nodes, feature_names, thread_num=1)

Source from the content-addressed store, hash-verified

156
157
158def get_binary_feature(nodes, feature_names, thread_num=1):
159 """
160 Fetch binary features of nodes.
161
162 Args:
163 nodes: A 1-d `Tensor` of `int64`.
164 feature_names: A list of `int`. Specify uint64 feature ids in graph to
165 fetch features for nodes.
166
167 Return:
168 A list of `String Tensor` with the same length as `feature_names`.
169 """
170 return _get_binary_feature(nodes, feature_names,
171 base._LIB_OP.get_binary_feature, thread_num)
172
173
174def get_edge_binary_feature(edges, feature_names, thread_num=1):

Callers

nothing calls this directly

Calls 1

_get_binary_featureFunction · 0.85

Tested by

no test coverage detected