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 | |
echo "Updating names" | |
[ ! -z "$1" ] && name="$1" || name=$$ | |
echo $name | |
export LC_ALL=C; unset LANGUAGE | |
echo "Updating the System files" | |
sudo apt-get update | |
echo "Checking for CUDA " |
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 | |
echo "Updating names" | |
[ ! -z "$1" ] && name="$1" || name=$$ | |
echo $name | |
echo "Updating the System files" | |
sudo apt-get update | |
echo "Checking for CUDA " |
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 | |
echo "Updating names" | |
[ ! -z "$1" ] && name="$1" || name=$$ | |
echo $name | |
echo "Updating the System files" | |
apt-get update | |
echo "Checking for CUDA and installing." |
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 | |
echo "Updating names" | |
[ ! -z "$1" ] && name="$1" || name=$$ | |
echo $name | |
echo "Updating the System files" |
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 | |
echo "Updating names" | |
[ ! -z "$1" ] && name="$1" || name=$$ | |
echo $name | |
echo "Updating the System files" | |
apt-get update | |
echo "Checking for CUDA and installing." |
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 | |
echo "Updating names" | |
# RANDOM=$$ | |
# NAME=$([ ! -z "$1" ] && echo "$1" || echo $RANDOM) | |
[ ! -z "$1" ] && name="$1" || name=$$ | |
echo $name | |
# echo $RANDOMS |
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 | |
echo "Updating names" | |
[ ! -z "$1" ] && name="$1" || name=$$ | |
echo $name | |
echo "Updating the System files" | |
apt-get update | |
echo "Checking for CUDA and installing." |
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 | |
echo "Updating the System files" | |
apt-get update | |
echo "Checking for CUDA and installing." | |
# Check for CUDA and try to install. | |
if ! dpkg-query -W cuda; then | |
# The 16.04 installer works with 16.10. | |
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb |
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
import keras.backend as K | |
from keras.engine import Layer | |
import tensorflow as tf | |
class SelU(Layer): | |
def __init__(self, alpha=1.6732632423543772848170429916717, scale=1.0507009873554804934193349852946, **kwargs): | |
super(SelU, self).__init__(**kwargs) | |
self.alpha = K.cast_to_floatx(alpha) |