v1.17
FBeta
is using the non-deterministic torch functionbincount
. Either by passing the argumentmake_deterministic
to theFBeta
class or by using one of the PyTorch functionstorch.set_deterministic_debug_mode
ortorch.use_deterministic_algorithms
, you can now make this function deterministic. Note that this might make your code slower.