Contents:
get_distribution()
set_random_seed()
upload_to_device()
Set a seed for various packages to be able to reproduce the results.
cfg (Config) – Configuration file.
Upload the different tensors, contained in dictionaries, to the device (e.g. gpu).
sample (dict) – Dictionary with the different tensors that will be used for the forward pass.