GetOptionValue

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Header File/Library File

  • Header file: #include <register/register_custom_pass.h>
  • Library file: libregister.so

Function Usage

Obtains the option value from the context based on the specified option key.

Prototype

graphStatus GetOptionValue(const AscendString &option_key, AscendString &option_value) const

Parameters

Parameter

Input/Output

Description

option_key

Input

Option key.

option_value

Output

Option value.

Returns

Status code. If the option key is not found, a failure message is returned.

Restrictions

None