Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
⚫ DeLU
⚫ DeLU

API

  • delu
    • to
    • cat
    • iter_batches
  • delu.cuda
    • free_memory
  • delu.nn
    • Lambda
    • NLinear
  • delu.random
    • seed
    • get_state
    • set_state
    • preserve_state
  • delu.tools
    • EarlyStopping
    • Timer

Other

  • Deprecated API
Back to top
View this page
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
NLinear
Copyright © 2024, Yura52
Made with Sphinx and @pradyunsg's Furo