aihwkit.simulator.configs.helpers module

Utilities for resistive processing units configurations.

aihwkit.simulator.configs.helpers.parameters_to_bindings(params, check_fields=True)[source]

Convert a dataclass parameter into a bindings class.

Parameters
  • params (Any) – parameter dataclass

  • check_fields (bool) – whether to check for the correct attributes

Returns

the C++ bindings

Raises

ConfigError – if the field type mismatches (int to float conversion is ignored)

Return type

Any

aihwkit.simulator.configs.helpers.tile_parameters_to_bindings(params)[source]

Convert a tile dataclass parameter into a bindings class.

Parameters

params (Any) –

Return type

Any