Dprofile Constructor

Description

Manages and configures the information about the Ascend AI Processor, such as the product architecture, product form, and buffer sizes at all levels.

Since the memory capacity and instruction specifications vary with the Ascend AI Processor versions, the Dprofile constructor is used to define the target machine of the Ascend AI Processor and specify the hardware environment for programming.

Do not use this API to develop a new operator. To set Ascend AI Processor version, set_current_compile_soc_info is recommended.

Prototype

__init__(ai_core_arch=None, ai_core_version=None, ddk_version=None)

Parameters

Table 1 Parameter description

Parameter

Input/Output

Description

ai_core_arch

Input

Reserved, and not recommended for newly developed operators.

ai_core_version

Input

Reserved, and not recommended for newly developed operators.

ddk_version

Input

Reserved, and not recommended for newly developed operators.

Applicability

Atlas 200/300/500 Inference Product

Atlas Training Series Product

Restrictions

If the product architecture and product form are not specified in the Dprofile instance, the default Ascend310 is used.

Returns

An instance of class Dprofile

Example

from tbe import tik
tik_dprofile = tik.Dprofile()