triton.language.num_programs

triton.language.num_programs(axis)

返回沿给定axis轴启动的程序实例数量。

Parameters:

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