Utility functions module

wrap[source]

wrap(func, *args, unsqueeze=False)

Wrap a torch function so it can be called with NumPy arrays. Input and return types are seamlessly converted.

deterministic_random[source]

deterministic_random(min_value, max_value, data)

Pseudorandom generator that returns an int over some given interval and data.