Function: set_tensor_dynamic_input

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas training products

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

Sets the name of a dynamic input after a tensor description is created by the acl.create_tensor_desc call.

Prototype

  • C Prototype
    1
    aclError aclSetTensorDynamicInput(aclTensorDesc *desc, const char *dynamicInputName)
    
  • Python Function
    1
    ret = acl.set_tensor_dynamic_input(desc, dynamic_input_name)
    

Parameter Description

Parameter

Description

desc

Int, pointer address of the tensor description data.

Call acl.create_tensor_desc to create data of the aclTensorDesc type in advance.

dynamic_input_name

Str, name of the dynamic input in desc.

Return Value Description

Return Value

Description

ret

Int, error code.