Skip to content

Instantly share code, notes, and snippets.

Check CUDA version
cat /usr/local/cuda/version.txt
Check CuDNN
cat /usr/include/cudnn.h | grep CUDNN_MAJOR -A 2
check tensorflow version
python3 -c 'import tensorflow as tf; print(tf.__version__)'
recover pip
I have followed this answer https://askubuntu.com/a/1056128
$ uname -a
Linux melisa-pc 4.15.0-128-generic #131-Ubuntu SMP Wed Dec 9 06:57:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
ID=ubuntu
@melsener
melsener / PersonTest.java
Created May 31, 2017 19:03
Playing with reflection.
import java.io.IOException;
import java.lang.reflect.*;
/**
* Created by melisa on 31/05/2017.
*/
class Person {
private String privateName;
public String publicName;
public Person friend;