This file contains hidden or 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 | |
| ## This gist contains instructions about cuda v11.2 and cudnn8.1 installation in Ubuntu 20.04 for Pytorch 1.8 & Tensorflow 2.7.0 | |
| ### steps #### | |
| # verify the system has a cuda-capable gpu | |
| # download and install the nvidia cuda toolkit and cudnn | |
| # setup environmental variables | |
| # verify the installation | |
| ### |
This file contains hidden or 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
| #!/usr/bin/env python | |
| """ A pre-commit git hook that gunzips the .als file and adds the resulting xml file to the git staging index. | |
| Caveat: | |
| It doesn't work perfectly to do a `git add` in a pre-commit hook - if nothing else in the repo has changed, | |
| the pre-commit won't even be fired so nothing happens. If something else has changed, the pre-commit hook | |
| doesn't get fired in time for the files it creates to show up in the list of files to be committed but the | |
| files it creates do actually go into the commit. So it works, but that's kind of weird. |