triton.language.num_programs

triton.language.num_programs(axis, _semantic=None)

返回在给定 axis(轴)上启动的程序实例数量。

参数:

axis (int) – 3D 启动网格的轴。必须为 0、1 或 2。