GetOptionValue

Applicability

Product

Supported or Not

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Header File/Library File

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

Function Usage

Obtains the value of option from the context based on the option's 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.

Constraints

None