-
tensorstore.ChunkLayout.Grid(*, rank: int | None =
None
, shape: Sequence[int | None] | None =None
, shape_soft_constraint: Sequence[int | None] | None =None
, aspect_ratio: Sequence[float | None] | None =None
, aspect_ratio_soft_constraint: Sequence[float | None] | None =None
, elements: int | None =None
, elements_soft_constraint: int | None =None
, grid: ChunkLayout.Grid | None =None
, grid_soft_constraint: ChunkLayout.Grid | None =None
) Constructs a chunk grid.
- Parameters:¶
- rank: int | None =
None
¶ Specifies the number of dimensions.
- shape: Sequence[int | None] | None =
None
¶ Hard constraints on the chunk size for each dimension. Corresponds to
ChunkLayout/Grid.shape
.- shape_soft_constraint: Sequence[int | None] | None =
None
¶ Soft constraints on the chunk size for each dimension. Corresponds to
ChunkLayout/Grid.shape_soft_constraint
.- aspect_ratio: Sequence[float | None] | None =
None
¶ Aspect ratio for each dimension. Corresponds to
ChunkLayout/Grid.aspect_ratio
.- aspect_ratio_soft_constraint: Sequence[float | None] | None =
None
¶ Soft constraints on the aspect ratio for each dimension. Corresponds to
ChunkLayout/Grid.aspect_ratio_soft_constraint
.- elements: int | None =
None
¶ Target number of elements per chunk. Corresponds to
ChunkLayout/Grid.elements
.- elements_soft_constraint: int | None =
None
¶ Soft constraint on the target number of elements per chunk. Corresponds to
ChunkLayout/Grid.elements_soft_constraint
.- grid: ChunkLayout.Grid | None =
None
¶ Other grid constraints to merge in. Hard and soft constraints in
grid
are retained as hard and soft constraints, respectively.- grid_soft_constraint: ChunkLayout.Grid | None =
None
¶ Other grid constraints to merge in as soft constraints.
- rank: int | None =