for more details: https://docs.nvidia.com/cuda/cublas/index.html#c
   ublasApi_reproducibility If one of these environment variable
   configurations is not set, a "RuntimeError" will be raised from
   these operations when called with CUDA tensors:
  * "torch.mm()"

  * "torch.mv()"

  * "torch.bmm()"

Note that deterministic operations tend to have worse performance
   than nondeterministic operations.
Note:
 This flag does not detect or prevent nondeterministic behavior
 caused by calling an inplace operation on a tensor with an
 internal memory overlap or by giving such a tensor as the "out"
 argument for an operation. In these cases, multiple writes of
 different data may target a single memory location, and the order
 of writes is not guaranteed.

Parameters:
      mode ("bool") -- If True, makes potentially nondeterministic
      operations switch to a deterministic algorithm or throw a