Function: create_handle
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Prototype
- C Prototype
1aclError aclopCreateHandle(const char *opType, int numInputs,int numInputs, const aclTensorDesc *const inputDesc[], int numOutputs, const aclTensorDesc *const outputDesc[], const aclopAttr *opAttr, aclopHandle **handle)
- Python Function
1handle, ret = acl.op.create_handle(op_type, input_desc, output_desc, op_attr)
Parameter Description
Parameter |
Description |
|---|---|
op_type |
Str, operator type name. |
input_desc |
Int list, description of the operator input tensor. |
output_desc |
Int list, description of the operator output tensor. |
op_attr |
Int, pointer address of an operator attribute. This object is created by calling acl.op.create_attr. |
Return Value Description
Return Value |
Description |
|---|---|
handle |
Int, operator handle address object. |
ret |
Int, error code.
|
Restrictions
If an operator has a constant input but acl.set_tensor_const has not been called to set the constant input, call acl.set_tensor_place_ment to set the placement attribute of TensorDesc and set mem_type to the host memory.