set_rng_state¶
torch.tvarant.set_rng_state(new_state, device='tvarant') → None
Restores RNG state previously returned by get_rng_state.
Restore RNG state previously returned by get_rng_state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
new_state
|
Tensor
|
State tensor from |
required |
device
|
Union[int, str, device]
|
Device specifier (compatibility; ignored beyond validation). |
'tvarant'
|
Source code in torch_tvarant/tvarant/__init__.py
161 162 163 164 165 166 167 168 169 170 171 | |