Graph-Learning-Benchmarks / gli

🗂 Graph Learning Indexer: a contributor-friendly and metadata-rich platform for graph learning benchmarks. Dataloading, Benchmarking, Tagging, and more!
https://graph-learning-benchmarks.github.io/gli/
MIT License
42 stars 20 forks source link

Add new rule in _verify_attrs #458

Closed xingjian-zhang closed 1 year ago

xingjian-zhang commented 1 year ago

Description

This PR adds a new rule in _verify_attrs(). In particular, we force the provided attributes to be gli.io.Attribute.

Related Issue

None.

Motivation and Context

When contributing to gli, contributors may not realize the inputs for node_attrs, edge_attrs, or graph_attrs should be a list of gli.io.Attribute. Instead, user may provide a list of numpy arrays. We want an explicit error to indicate this requirement.

How Has This Been Tested?

Tested during developing #454.