MCPcopy
hub / github.com/dmlc/dgl / verify_partition_formats

Function verify_partition_formats

tools/verification_utils.py:59–76  ·  view source on GitHub ↗

Validate the partitioned graphs with supported formats Parameters: ----------- part_g : DGL Graph object created for the partitioned graphs formats : string formats(csc, coo, csr) supported formats and multiple values can be seperated by comma

(part_g, formats)

Source from the content-addressed store, hash-verified

57
58
59def verify_partition_formats(part_g, formats):
60 """Validate the partitioned graphs with supported formats
61
62 Parameters:
63 -----------
64 part_g : DGL Graph object
65 created for the partitioned graphs
66 formats : string
67 formats(csc, coo, csr) supported formats and multiple
68 values can be seperated by comma
69 """
70 # Verify saved graph formats
71 if formats is None:
72 assert "coo" in part_g.formats()["created"]
73 else:
74 formats = formats.split(",")
75 for format in formats:
76 assert format in part_g.formats()["created"]
77
78
79def verify_graph_feats(

Callers 2

_validate_resultsFunction · 0.90
_test_pipelineFunction · 0.90

Calls 1

formatsMethod · 0.45

Tested by 1

_test_pipelineFunction · 0.72