Do we still need to use manual_seed
if we have set use_deterministic_algorithms(True)
to create a reproducible code?
Because as far as I understand, the two functions are interchangeable. Is this true?
Do we still need to use manual_seed
if we have set use_deterministic_algorithms(True)
to create a reproducible code?
Because as far as I understand, the two functions are interchangeable. Is this true?
You would need to use both, as setting the seed would make sure the pseudorandom number generator would return a deterministic output, while using deterministic algorithms would force e.g. cudnn to select deterministic kernels and could also use a different code path for native functions.
ah…I see the difference now… thank you