jax.experimental.pallas.GridSpec

jax.experimental.pallas.GridSpec#

class jax.experimental.pallas.GridSpec(grid=(), in_specs=NoBlockSpec, out_specs=NoBlockSpec)[source]#

jax.experimental.pallas.pallas_call() 编码网格参数。

查看 jax.experimental.pallas.pallas_call() 的文档,以及 Grids and BlockSpecs,以获取对参数的更详细说明。

参数:
  • grid (TupleGrid)

  • in_specs (BlockSpecTree)

  • out_specs (BlockSpecTree)

__init__(grid=(), in_specs=NoBlockSpec, out_specs=NoBlockSpec)[source]#
参数:
  • grid (Grid)

  • in_specs (BlockSpecTree)

  • out_specs (BlockSpecTree)

方法

__init__([grid, in_specs, out_specs])

属性

grid

grid_names

in_specs

out_specs