View softmax.py
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
import numpy as np | |
def softmax(x): | |
""" Compute the softmax for each row of the input x | |
Arguments: | |
x -- A N dimensional veector or M X N dimensional numpy matrix. | |
Return: | |
x -- modified x in-place | |
""" | |
View conda-environment-ty.yml
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
name: rapids012 | |
channels: | |
- rapidsai | |
- nvidia | |
- conda-forge | |
- defaults | |
- numba | |
dependencies: | |
- python=3.6 | |
- cudatoolkit=10.1 |
View gpu_dataproc_packages.sh
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
#!/bin/bash | |
OS_NAME=$(lsb_release -is | tr '[:upper:]' '[:lower:]') | |
readonly OS_NAME | |
OS_DIST=$(lsb_release -cs) | |
readonly OS_DIST | |
CUDA_VERSION='10.2' | |
readonly CUDA_VERSION | |
readonly DEFAULT_NVIDIA_DEBIAN_GPU_DRIVER_VERSION='460.56' |
View custom_gpu_init_actions.sh
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
#!/bin/bash | |
# Dataproc configurations | |
readonly HADOOP_CONF_DIR='/etc/hadoop/conf' | |
readonly HIVE_CONF_DIR='/etc/hive/conf' | |
readonly SPARK_CONF_DIR='/etc/spark/conf' | |
function execute_with_retries() { | |
local -r cmd=$1 | |
for ((i = 0; i < 10; i++)); do |