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

Function check_default_s_attrs

graphlearn/python/tests/utils.py:275–277  ·  view source on GitHub ↗
(s_attrs, count, default_string_attr="")

Source from the content-addressed store, hash-verified

273 decimal=4)
274
275def check_default_s_attrs(s_attrs, count, default_string_attr=""):
276 npt.assert_equal(s_attrs.flatten(),
277 np.array([default_string_attr] * count))
278
279def check_edge_shape(edges, batch_size):
280 npt.assert_equal(edges.src_ids.reshape(-1).size, batch_size)

Callers 1

Calls 1

flattenMethod · 0.45

Tested by

no test coverage detected