Skip to content
Zero 0.0.7 documentation logo
Zero 0.0.7 zero.random
Type to start searching
    Zero
    Zero
    • NOTES
    • Learn
    • API REFERENCE
    • zero
    • zero.data
    • zero.hardware
    • zero.nn
    • zero.random
      • Show Source
    • Show Source

    zero.randomΒΆ

    Random sampling utilities.

    seed

    Set seeds in random, numpy and torch.

    get_state

    Aggregate global random states from random, numpy and torch.

    set_state

    Set global random states in random, numpy and torch.

    preserve_state

    Decorator and a context manager for preserving global random state.

    © Copyright 2021, Yura52.
    Created using Sphinx 4.1.2. and Material for Sphinx