Contents Menu Expand Light mode Dark mode Auto light/dark mode
⚫ DeLU
⚫ DeLU

Usage & API

  • 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

Other

  • Deprecated API
Back to top
Edit this page

delu.random#

An extension to torch.random.

seed

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

get_state

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

set_state

Set the global RNG states in random, numpy and torch.

preserve_state

Save the global RNG states before entering a context/function and restore it on exit.

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