anchor.diff:      repo   = "pytorch";
       rev    = "v${version}";
       fetchSubmodules = true;
  -    sha256 = "sha256-gZmEhV1zzfr/5T2uNfS+8knzyJIxnv2COWVyiAzU9jM=";
  +    sha256 = "sha256-QcvoJqpZJXPSc9HLCJHetrp/hMESuC5kYl90d7Id0ZU=";
     };
   
     patches = lib.optionals stdenv.isDarwin [
  
positive.code: in buildPythonPackage rec {
    pname = "pytorch";
    # Don't forget to update pytorch-bin to the same version.
    version = "1.9.0";
  
    disabled = !isPy3k;
  
  
negative.code:   passthru = {
      inherit cudaSupport;
      cudaArchList = final_cudaArchList;
      # At least for 1.10.2 `torch.fft` is unavailable unless BLAS provider is MKL. This attribute allows for easy detection of its availability.
      blasProvider = blas.provider;
    };
  
  