SetInput
产品支持情况
产品 |
是否支持 |
---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
|
x |
|
x |
功能说明
设置特征矩阵Input。
函数原型
1 | __aicore__ inline void SetInput(const AscendC::GlobalTensor<InputT>& input) |
参数说明
参数名 |
输入/输出 |
描述 |
---|---|---|
input |
输入 |
Input在Global Memory上的首地址。类型为GlobalTensor。特征矩阵Input支持的数据类型为:half/bfloat16_t。 |
返回值说明
无
约束说明
无
调用示例
1 2 3 | GlobalTensor<half> inputGm; inputGm.SetGlobalBuffer(reinterpret_cast<__gm__ half *>(input)); conv3dApi.SetInput(inputGm); |
父主题: Conv3D