jax.experimental.pallas.BoundedSlice#
- class jax.experimental.pallas.BoundedSlice(block_size)[source]#
Slices a dynamic-length window up to
block_sizealong a dimension.index_mapmust return apl.Slice/pl.dswhosestartandsizemay be dynamic, withsize <= block_size. The kernelRefhas static sizeblock_size, with valid elements at[:size]and undefined values pastsize.block_shape=(BoundedSlice(3), 4), index_map -> (pl.ds(start=1, size=2), 0) array (4, 4): ref (3, 4): . . . . a b c d a b c d -> e f g h e f g h ? ? ? ? (?: undefined) . . . .- Parameters:
block_size (int)
Methods
__init__(block_size)Attributes
block_size