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

Function check_s_attrs

graphlearn/python/tests/utils.py:240–242  ·  view source on GitHub ↗
(s_attrs, ids)

Source from the content-addressed store, hash-verified

238 npt.assert_almost_equal(f_attrs[i][0], value / 1.0, decimal=5)
239
240def check_s_attrs(s_attrs, ids):
241 for i, value in zip(range(ids.size), ids):
242 npt.assert_equal(s_attrs[i][0], str(value))
243
244def check_not_exist_node_attrs(nodes,
245 default_int_attr=0,

Callers 1

check_node_attrsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected