Skip to content

Bugs for training #1

@mgao97

Description

@mgao97

Hi, I have encountered a problem when I run the code following the readme.

The problem shows _"Traceback (most recent call last):
File "/users/Min/HyperGCL/src/train_auto.py", line 903, in
out = model.forward_cl(data_aug1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/users/Min/HyperGCL/src/models.py", line 718, in forward_cl
x = F.relu(self.V2EConvs[i](x, edge_index, norm, self.aggr, aug_weight))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/users/Min/miniconda/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/users/Min/miniconda/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1527, in call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/users/Min/HyperGCL/src/layers.py", line 640, in forward
x = self.propagate(edge_index, x=x, norm=norm, aggr=aggr, aug_weight=aug_weight)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/users/Min/miniconda/lib/python3.11/site-packages/torch_geometric/nn/conv/message_passing.py", line 480, in propagate
out = self.aggregate(out, **aggr_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/users/Min/HyperGCL/src/layers.py", line 665, in aggregate
raise ValueError("aggr was not passed!")
ValueError: aggr was not passed!"

Your response is very helpful to me!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions