[object Object]

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

Creates a weight tensor for computation performance affinity of the convolution operator. This API must be used together with [object Object]aclnnCalculateConvolutionWeightSize[object Object].

[object Object]

Each operator has [object Object]two-phase API[object Object] calls. First, [object Object] is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, [object Object] is called to perform computation.

[object Object]
[object Object]
[object Object]
  • Parameters

    [object Object]
  • Returns

    [object Object]: status code. For details, see [object Object]aclnn Return Codes[object Object].

    The first-phase API performs input parameter validation. The following errors may be returned:

    [object Object]
[object Object]
  • Parameters

    [object Object]
  • Returns

    [object Object]: status code. For details, see [object Object]aclnn Return Codes[object Object].

[object Object]
  • Deterministic computation:

    • [object Object] defaults to a deterministic implementation.
  • Only forward Conv2D is supported.

  • Transposed convolution is not supported.

  • Cache is not supported.

  • Empty tensor is supported: When both [object Object] and [object Object] are empty tensors, the actual conversion is not performed and [object Object] returns [object Object].

[object Object]

The following example is for reference only. For details, see [object Object]Compilation and Running Sample[object Object].

[object Object]