Skip to content

resource_variable_handler

Classes

ResourceVariableHandler

ResourceVariableHandler(model: ModelT, subgraph: SubGraphT, operators: list[AotOperator], config: ConvertArgs)

Functions

compute_values
compute_values() -> dict[str, str]

Compute the values for the operator source code template.

Args:

Returns:

  • dict[str, str]

    dict[str, str]: Dictionary of values for the operator template.

generate_source_code
generate_source_code(save_path: Path)

Generate the source code for resource variables.

Parameters:

  • save_path
    (Path) –

    Path to save the generated code.

Functions