Contents Menu Expand Light mode Dark mode Auto light/dark mode
DeLU
Logo
  • v0.0.21 ▼
  • Source code

API & Examples

  • delu
    • to
    • cat
    • iter_batches
  • delu.cuda
    • free_memory
  • delu.nn
    • Lambda
    • NLinear
    • named_sequential
  • delu.random
    • seed
    • get_state
    • set_state
    • preserve_state
  • delu.utils.data
    • Enumerate
    • IndexDataset
  • delu.tools
    • EarlyStopping
    • Timer

Deprecated API

  • [deprecated]
Back to top
Edit this page

delu.random#

Random sampling utilities.

seed

Set diverse global random seeds in random, numpy and torch.

get_state

Aggregate the global random generator states from random, numpy and torch.

set_state

Set the global random number generator states in random, numpy and torch.

preserve_state

A decorator and context manager for preserving the global random generators state.

Next
seed
Previous
named_sequential
Copyright © 2023, Yura52
Made with Sphinx and @pradyunsg's Furo