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/sh | |
hard_limit=$(git config hooks.filesizehardlimit) | |
soft_limit=$(git config hooks.filesizesoftlimit) | |
: ${hard_limit:=10000000} | |
: ${soft_limit:=1000000} | |
list_new_or_modified_files() | |
{ | |
git diff --staged --name-status|sed -e '/^D/ d; /^D/! s/.\s\+//' | |
} |
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 tensorflow as tf | |
import numpy as np | |
# Define Networks | |
# Define cross entropy loss | |
# Run session | |
# Calculate accuracy | |
# Output result |