@aluo-x thanks! though it doesn’t seem to fit my needs, but when searching for similar packages I found torch_scatter.scatter_mul and it seems to work: https://pytorch-scatter.readthedocs.io/en/1.4.0/functions/mul.html 13