Skip to content

Instantly share code, notes, and snippets.

View Con-Mi's full-sized avatar
🏄‍♂️
.

Marios Aspris Con-Mi

🏄‍♂️
.
View GitHub Profile
@Con-Mi
Con-Mi / CMakeLists.txt
Created November 21, 2018 12:13
Convert a PyTorch binary to C++ readable.
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project(custom_ops)
set(CMAKE_PREFIX_PATH /home/marios-cellink/libtorch)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
find_package(Torch REQUIRED)
find_package(OpenCV 3.4.3 REQUIRED)
@Con-Mi
Con-Mi / gtest_installation_ubuntu.sh
Created September 17, 2018 08:36
Shell script to install Google test library for Ubuntu.
#!bin/bash
TEST_RESET='/e[0m'
TEST_YELLOW='/e[1;33m'
sudo apt-get install libgtest-dev
echo -e $TEST_YELLOW
echo "APT fininshed installing Google Tests.."
echo -e $TEST_RESET
@Con-Mi
Con-Mi / pytorch041_cuda92_colab.sh
Last active May 31, 2022 05:57
A shell file to install CUDA 9.2 backend for PyTorch 0.4.1 on Google Colab.
#!/bin/bash
TEXT_RESET='\e[0m'
TEXT_YELLOW='\e[1;33m'
wget https://developer.nvidia.com/compute/cuda/9.2/Prod2/local_installers/cuda-repo-ubuntu1604-9-2-local_9.2.148-1_amd64
echo -e $TEXT_YELLOW
echo 'WEBGET finished..'
echo -e $TEXT_RESET
@Con-Mi
Con-Mi / pytorch041_cuda92.sh
Last active January 23, 2020 20:14
A shell file to install CUDA 9.2 backend and PyTorch 0.4.1 on your Ubuntu computer or Google Cloud machine.
#!/bin/bash
TEXT_RESET='\e[0m'
TEXT_YELLOW='\e[1;33m'
wget https://developer.nvidia.com/compute/cuda/9.2/Prod2/local_installers/cuda-repo-ubuntu1604-9-2-local_9.2.148-1_amd64
echo -e $TEXT_YELLOW
echo 'WEBGET finished..'
echo -e $TEXT_RESET