昇腾社区首页
中文
注册

def __init__

函数功能

类初始化函数。

函数原型

def __init__(self, num_timesteps: int = 1000, num_sampling_steps: int = 30):

参数说明

参数名

输入/输出

说明

num_timesteps

输入

时间步数的范围,默认值为1000。

num_sampling_steps

输入

采样过程中实际执行的步数,默认值为30。

返回值说明