The error message suggests that the function call torch.cat(edges, nodes, dim=1) is incorrect.

According to the error message, the torch.cat() function expects either a tuple of tensors with an integer dim argument or a tuple of tensors with a named dim argument.

The correct syntax for torch.cat() could be one of the following:

  1. edges = torch.cat((edges, nodes), dim=1): This concatenates the edges and nodes tensors along the specified dimension dim=1.

  2. edges = torch.cat((edges, nodes), dim='some_dimension_name'): This concatenates the edges and nodes tensors along the dimension specified by the name 'some_dimension_name'.

You need to choose the appropriate syntax based on your specific use case and the dimensions of the tensors you are trying to concatenate

Traceback most recent call last File DGraphSpikeNet-masterSAGE-spikerestructpy line 227 in module edges = torchcatedges nodes dim=1TypeError cat received an invalid combination of arguments - got

原文地址: http://www.cveoy.top/t/topic/hQxd 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录