开发者
资源
[object Object]

[object Object][object Object]undefined
[object Object]

StridedSliceAssign是一种张量切片赋值操作,它可以将张量inputValue的内容,赋值给目标张量varRef中的指定位置。

[object Object]

每个算子分为,必须先调用[object Object]接口获取计算所需workspace大小以及包含了算子计算流程的执行器,再调用[object Object]接口执行计算。

[object Object]
[object Object]
[object Object]
  • 参数说明:

    [object Object]

    [object Object]
  • 返回值:

    aclnnStatus:返回状态码,具体参见

    第一段接口完成入参校验,出现以下场景时报错: [object Object]

    [object Object]
[object Object]
  • 参数说明

    [object Object]
  • 返回值:

    aclnnStatus:返回状态码,具体参见

[object Object]
  • 确定性计算:
    • aclnnStridedSliceAssignV2默认确定性实现。 inputValue的shape第i维的计算公式为:inputValueShape[i]=end[i]begin[i]strides[i]inputValueShape[i] = \lceil\frac{end[i] - begin[i]}{strides[i]} \rceil,其中x\lceil x\rceil 表示对 xx向上取整。endendbeginbegin 为经过特殊值调整后的取值,调整方式为:当 end[i]<0end[i] < 0 时,end[i]=varShape[i]+end[i]end[i]=varShape[i] + end[i] ,若仍有end[i]<0end[i] < 0,则 end[i]=0end[i] = 0 ,当 end[i]>varShape[i]end[i] > varShape[i] 时, end[i]=varShape[i]end[i] = varShape[i]beginbegin 同理。
[object Object]

示例代码如下,仅供参考,具体编译和执行过程请参考

[object Object]