Grid sample in bilinear

How the input cordinates are normalized between -1 to 1 in grid sampling?