Skip to navigation

aitune.torch.tune_strategy.one_backend_strategy

View as Markdown

Simple tune strategy.

Module Contents

Classes

NameDescription
OneBackendStrategyStrategy which uses just one provided backend.

API

class aitune.torch.tune_strategy.one_backend_strategy.OneBackendStrategy(
kwargs = {}
)

Bases: PerformanceValidationMixin

Strategy which uses just one provided backend.

aitune.torch.tune_strategy.one_backend_strategy.OneBackendStrategy._describe_parts()

Describes the tuning.

aitune.torch.tune_strategy.one_backend_strategy.OneBackendStrategy._tune(
module: torch.nn.Module,
name: str,
device: torch.device,
cache_dir: pathlib.Path

Tunes given torch module with provided graph_spec and data.

aitune.torch.tune_strategy.one_backend_strategy.OneBackendStrategy.to_json_dict() -> dict[str, typing.Any]

Returns config dict for one backend strategy.