Skip to content

Patching Factory

Source

Patching strategy factory.

create_patching(data_shapes, patching_config)

Factory function to create a patching strategy based on the provided config.

Parameters:

  • data_shapes (list of Sequence of int) –

    The shapes of the data stacks to be patched.

  • patching_config (PatchingConfig) –

    The configuration for the desired patching.

Returns:

  • Patching

    An instance of the specified patching.