jax.experimental.pallas.mosaic_gpu.RefType

jax.experimental.pallas.mosaic_gpu.RefType#

class jax.experimental.pallas.mosaic_gpu.RefType(transforms=(), *, read=True, write=True)[source]#

Type specifier for inline_mgpu() reference arguments.

Parameters:
  • transforms (tuple[state_types.Transform, ...])

  • read (bool)

  • write (bool)

transforms#

A tuple of memory transforms applied to the reference.

Type:

tuple[state_types.Transform, …]

read#

Whether the inline function reads from the reference.

Type:

bool

write#

Whether the inline function writes to the reference.

Type:

bool

__init__(transforms=(), *, read=True, write=True)#
Parameters:
  • transforms (tuple[state_types.Transform, ...])

  • read (bool)

  • write (bool)

Return type:

None

Methods

__init__([transforms, read, write])

Attributes