aclopLoad

Description

Loads the single-operator model data from the memory. The memory is managed by the user. The "single-operator model data" refers to the data that is loaded to the memory from the single-operator .om file. This API is synchronous.

Restrictions

For the Ascend 310 AI Processor, when your app runs on the host, a single process can execute up to 40,000,000 operators at a time.when your app runs on the device, a single process can execute up to 2,000,000 operators at a time.

For the Ascend 910 AI Processor, when your app runs on the host, a single process can execute up to 40,000,000 operators at a time.

For the Ascend 310P AI Processor, when your app runs on the host, a single process can execute up to 40,000,000 operators at a time.when your app runs on the device, a single process can execute up to 2,000,000 operators at a time.

Prototype

aclError aclopLoad(const void *model, size_t modelSize)

Parameters

Parameter

Input/Output

Description

model

Input

Pointer to the memory address of the single-operator model data.

modelSize

Input

Size of the model data in the memory, in bytes.

Returns

0 on success; else, failure.

See Also

For details about the API call sequence and example, see Single-Operator Execution.