-
tensorstore.ChunkLayout.Grid(*, rank: SupportsInt | None =
None, shape: Iterable[SupportsInt | None] | None =None, shape_soft_constraint: Iterable[SupportsInt | None] | None =None, aspect_ratio: Iterable[SupportsFloat | None] | None =None, aspect_ratio_soft_constraint: Iterable[SupportsFloat | None] | None =None, elements: SupportsInt | None =None, elements_soft_constraint: SupportsInt | None =None, grid: ChunkLayout.Grid | None =None, grid_soft_constraint: ChunkLayout.Grid | None =None) Constructs a chunk grid.
- Parameters:¶
- rank: SupportsInt | None =
None¶ Specifies the number of dimensions.
- shape: Iterable[SupportsInt | None] | None =
None¶ Hard constraints on the chunk size for each dimension. Corresponds to
ChunkLayout/Grid.shape.- shape_soft_constraint: Iterable[SupportsInt | None] | None =
None¶ Soft constraints on the chunk size for each dimension. Corresponds to
ChunkLayout/Grid.shape_soft_constraint.- aspect_ratio: Iterable[SupportsFloat | None] | None =
None¶ Aspect ratio for each dimension. Corresponds to
ChunkLayout/Grid.aspect_ratio.- aspect_ratio_soft_constraint: Iterable[SupportsFloat | None] | None =
None¶ Soft constraints on the aspect ratio for each dimension. Corresponds to
ChunkLayout/Grid.aspect_ratio_soft_constraint.- elements: SupportsInt | None =
None¶ Target number of elements per chunk. Corresponds to
ChunkLayout/Grid.elements.- elements_soft_constraint: SupportsInt | 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
gridare retained as hard and soft constraints, respectively.- grid_soft_constraint: ChunkLayout.Grid | None =
None¶ Other grid constraints to merge in as soft constraints.
- rank: SupportsInt | None =