Options.grid_samples Options.grid_samples(size: int | Tuple[int, int] | None = None) → ndarray[source] Returns samples chosen with grid sampling from the domain. Parameters: size (Union[int, Tuple[int, int]], optional, default=1) – Output shape. If the given shape is, e.g., (m, n), then m * n samples are drawn.