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
print("hello") | |
A = [-1,1,10,0,-10,3.5] | |
def insertion_sort(A): | |
len_A = len(A) | |
for i in range(1,len_A): | |
j = i | |
while(j >0 and A[j-1] > A[j]): | |
A[j-1],A[j] = A[j], A[j-1] | |
j = j-1 |
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
# This script is designed to work with ubuntu 16.04 LTS | |
# with keras 1.2.2 and the latest Pytorch with CUDA 8 support | |
########################################################################## | |
#This is used to install CUDA 8 driver for Tesla K80 | |
########################################################################## | |
#!/bin/bash | |
echo "Checking for CUDA and installing." | |
# Check for CUDA and try to install. | |
if ! dpkg-query -W cuda-8-0; then |