xnn.common.config.translate.register_key_translation#

xnn.common.config.translate.register_key_translation(name, table)[source]#

Register (or extend) the upstream -> xnn key table for one model family.

Parameters:
  • name (str) – Model-registry name the table applies to (e.g. "mace").

  • table (dict[str, str]) – Mapping of upstream key spellings to xnn canonical spellings; merged into any existing table for name (new entries win).

Return type:

None