-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing aggregator #2062
Labels
Comments
Have you imported MaxPoolingAggregator? from stellargraph.layer import MaxPoolingAggregator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Changing Aggregator in DirectedGraphSAGE gives error below
Observed behavior
if aggregator is None:
870 self._aggregator = MeanAggregator
--> 871 elif issubclass(aggregator, Layer):
872 self._aggregator = aggregator
873 else:
TypeError: issubclass() arg 1 must be a class
The error happens when changing the aggregator. I think line 871 should check the instance of aggregator and Layer or change the code to below?
issubclass(type(aggregator), Layer)
The text was updated successfully, but these errors were encountered: