Atlas 200/300/500 推理产品不支持该算子。
Atlas 训练系列产品不支持该算子。
Atlas 推理系列产品(Ascend 310P处理器)不支持该算子。
Atlas 200/500 A2推理产品不支持该算子。
每个算子有两段接口,必须先调用“acldvppRotateGetWorkspaceSize”接口获取入参并根据计算流程计算所需workspace大小,再调用“acldvppRotate”接口执行计算。两段式接口如下:
算子功能:对图像做逆时针方向的旋转。旋转示意图如下:
acldvppStatus acldvppRotateGetWorkspaceSize(const aclTensor *self, float angle, uint32_t interpolationMode, bool expand, const aclIntArray *center, uint32_t paddingMode, const aclFloatArray *fill, aclTensor *out, uint64_t *workspaceSize, aclOpExecutor **executor);
当expand为False时,如果center设置为nullptr,表示按照图像中心点旋转;如果设置center,则按照center设置的中点心旋转,以图像左上角为原点设置center的坐标值。
当expand为True时,设置center不生效,固定按照图像中心点旋转。
返回acldvppStatus状态码,具体请参见acldvpp返回码。
acldvppStatus acldvppRotate(void* workspace, uint64_t workspaceSize, aclOpExecutor* executor, aclrtStream stream);
返回acldvppStatus状态码,具体请参见acldvpp返回码。