def set_input_shape(self, shape)
函数功能
设置输入形状。
函数原型
def set_input_shape(self, shape)
参数说明
参数名 |
参数类型 |
输入/输出 |
说明 |
---|---|---|---|
shape |
array |
输入 |
输入形状。 只支持[1,n],n为tokenid数量,且n<=16000。 |
返回值
无
父主题: class Input
设置输入形状。
def set_input_shape(self, shape)
参数名 |
参数类型 |
输入/输出 |
说明 |
---|---|---|---|
shape |
array |
输入 |
输入形状。 只支持[1,n],n为tokenid数量,且n<=16000。 |
无