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)
| 156 | |
| 157 | |
| 158 | def 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 | |
| 174 | def get_edge_binary_feature(edges, feature_names, thread_num=1): |
nothing calls this directly
no test coverage detected