Skip to content
Discussion options

You must be logged in to vote

Sovled by coping code from the old 1.4.2 version

import inspect
import math
from collections import OrderedDict
import torch
from torch.nn import Parameter as Param

import torch_scatter


def scatter_(name, src, index, dim=0, dim_size=None):
    r"""Aggregates all values from the :attr:`src` tensor at the indices
    specified in the :attr:`index` tensor along the first dimension.
    If multiple indices reference the same location, their contributions
    are aggregated according to :attr:`name` (either :obj:`"add"`,
    :obj:`"mean"` or :obj:`"max"`).

    Args:
        name (string): The aggregation to use (:obj:`"add"`, :obj:`"mean"`,
            :obj:`"min"`, :obj:`"max"`).
        …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sailist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant