This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying my Blockstack ID is secured with the address 1SpdtRGnfxyMNjdQxPoiZoYbKyLqHdCc4 https://explorer.blockstack.org/address/1SpdtRGnfxyMNjdQxPoiZoYbKyLqHdCc4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying my Blockstack ID is secured with the address 1SpdtRGnfxyMNjdQxPoiZoYbKyLqHdCc4 https://explorer.blockstack.org/address/1SpdtRGnfxyMNjdQxPoiZoYbKyLqHdCc4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying my Blockstack ID is secured with the address 1SpdtRGnfxyMNjdQxPoiZoYbKyLqHdCc4 https://explorer.blockstack.org/address/1SpdtRGnfxyMNjdQxPoiZoYbKyLqHdCc4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd to the shared project folder: | |
$ cd /gpfs/wolf/gen141/proj-shared | |
Create a run directory | |
$ mkdir mydir | |
$ cd mydir | |
Clone the current working branch from github. F.ex. my Dali branch: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#SBATCH --job-name=test | |
#SBATCH --cpus-per-task=5 | |
#SBATCH --mem-per-cpu=1GB | |
#SBATCH --nodes=4 | |
#SBATCH --tasks-per-node=1 | |
#SBATCH --time=00:30:00 | |
#SBATCH --reservation=test | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using LinearAlgebra | |
using Zygote | |
using ChainRules | |
using ChainRulesCore | |
using Random | |
using Statistics | |
using FiniteDifferences | |
using ChainRulesTestUtils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using LinearAlgebra | |
using Zygote | |
using ChainRules | |
using ChainRulesCore | |
using Random | |
using Statistics | |
using FiniteDifferences | |
using ChainRulesTestUtils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
def f1(A): | |
q, r = torch.qr(A) | |
return q.sum() | |
def f2(A): | |
q, r = torch.qr(A) | |
return r.sum() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using LinearAlgebra | |
using Zygote | |
using ChainRules | |
using ChainRulesCore | |
using Random | |
using CUDA | |
Random.seed!(1234); | |
function ChainRules.rrule(::typeof(qr), A::CuArray{T}) where {T} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using CUDA | |
using LinearAlgebra | |
using Random | |
using Zygote | |
using ChainRules | |
using ChainRulesCore | |
CUDA.allowscalar(false) | |
Random.seed!(1234) |
OlderNewer