te_set_version
Function
Sets the Ascend AI Processor version for single-operator debugging using the UT, ST, and more.
Prototype
def te_set_version(soc_version, core_type="AiCore", aicore_num=None, l1_fusion=None)
Parameters
Parameter |
Type |
Description |
---|---|---|
soc_version |
String (required) |
Indicates the Ascend AI Processor versions: Ascend310, Ascend910, Ascend910Lite, Ascend910Pro, Ascend610 and Ascend 710. |
core_type |
String (optional) |
Specifies the core type: AiCore or VectorCore. Defaults to AiCore. |
aicore_num |
Integer (optional) |
Specifies the number of Cores to be used. The value ranges from 1 to the available number of Cores. If not specified, the available number of Cores is used. |
l1_fusion |
Bool (optional) |
Specifies whether to perform L1 fusion, either True or False. Defaults to False. |
Returns
Parameter |
Type |
Description |
---|---|---|
Return |
String |
success on success; error on failure |
Restrictions
None
Example
te.platform.te_set_version("Ascend910", "AiCore", 32, False)