afe.ir.custom_operation.utils

Functions

parse_custom_op_attrs_to_dict(→ Dict[str, Union[str, ...)

Convert a string custom op attributes to python dictionary

dump_custom_op_attrs_dict_to_string(→ str)

Convert a dictionary custom op attributes to str

Module Contents

afe.ir.custom_operation.utils.parse_custom_op_attrs_to_dict(custom_op_attrs: str) Dict[str, str | bool][source]

Convert a string custom op attributes to python dictionary :param custom_op_attrs: str. Custom op attributes in str :return: Dict[str, Union[str, bool]]

afe.ir.custom_operation.utils.dump_custom_op_attrs_dict_to_string(custom_op_attrs_dict: Dict[str, str | bool]) str[source]

Convert a dictionary custom op attributes to str :param custom_op_attrs_dict: Dict[str, Union[str, bool]]. Custom op attributes in dictionary :return: str. Custom op attributes in str