grid_weights# jolideco.utils.torch.grid_weights(x, y, x0, y0)[source]# Compute 4-pixel weights such that centroid is preserved.