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
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:
-
edges = torch.cat((edges, nodes), dim=1): This concatenates theedgesandnodestensors along the specified dimensiondim=1. -
edges = torch.cat((edges, nodes), dim='some_dimension_name'): This concatenates theedgesandnodestensors 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
原文地址: http://www.cveoy.top/t/topic/hQxd 著作权归作者所有。请勿转载和采集!