Removed second move to gpu for arguments to matrix weighter