Skip to content

manual_seed_all

torch.tvarant.manual_seed_all(seed)  None

Seeds all Tvarant devices (currently one).

Seed all Tvarant devices.

Parameters:

Name Type Description Default
seed int

Integer seed applied to every logical device (currently one).

required
Source code in torch_tvarant/tvarant/__init__.py
138
139
140
141
142
143
144
def manual_seed_all(seed: int) -> None:
    """Seed all Tvarant devices.

    Args:
        seed: Integer seed applied to every logical device (currently one).
    """
    manual_seed(seed)