Function: load

Applicability

Product

Supported

Atlas 350 Accelerator Card

√

Atlas A3 training product / Atlas A3 inference product

√

Atlas A2 training product / Atlas A2 inference product

√

Atlas training product

√

Atlas inference product

√

Atlas 200I/500 A2 inference product

√

Function Usage

Loads the single-operator model data from the memory. The memory is managed by the user.

Prototype

  • C Prototype
    1
    aclError aclopLoad(const void *model, size_t modelSize)
    
  • Python Function
    1
    ret = acl.op.load(model, model_size)
    

Parameters

Parameter

Description

model

Int, address object of the single-operator model data.

model_size

Int, length of the model data in the memory, in bytes.

Returns

Return Value

Description

ret

Int, error code: 0 on success; else, failure.

Restrictions

Before loading, check whether the memory is sufficient based on the size of the operator OM file. If the memory is insufficient, the application will malfunction.

For the Atlas 200I/500 A2 inference product , when your app runs on the host, a single process can execute up to 40,000,000 operators at a time.

For the Atlas training product , when your app runs on the host, a single process can execute up to 40,000,000 operators at a time.

For the Atlas A2 training product / Atlas A2 inference product , when your app runs on the host, a single process can execute up to 2,000,000 operators at a time.

For the Atlas inference product , 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 Atlas A3 training product / Atlas A3 inference product , when your app runs on the host, a single process can execute up to 2,000,000 operators at a time.

Reference

For the API call sequence, see Single-Operator Execution.