- OS - High Sierra 10.13
- Tensorflow - 1.4
- Xcode command line tools - 8.2 (Download from here: Xcode - Support - Apple Developer & Switch to different clang version: sudo xcode-select --switch/Library/Developer/CommandLineTools & check version: clang -v)
- Cmake - 3.7
- Bazel - 0.7.0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| machine: | |
| environment: | |
| MINICONDA: "$HOME/miniconda" | |
| MINICONDA_PATH: "$MINICONDA/bin" | |
| PATH: "$MINICONDA_PATH:$PATH" | |
| CONDA: "$MINICONDA_PATH/conda" | |
| ANACONDA: "$MINICONDA_PATH/anaconda" | |
| # This ensures we don't accidentally pull in ~/.condarc | |
| # if it happens to be there for some strange reason | |
| CONDARC: "$MINICONDA/condarc.none" |
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
| UNDERSTANDING HASH FUNCTIONS | |
| by Geoff Pike | |
| Version 0.2 --- early draft --- comments and questions welcome! | |
| References appear in square brackets. | |
| 1 INTRODUCTION | |
| Hashing has proven tremendously useful in constructing various fast | |
| data structures and algorithms. It is typically possible to simplify |
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
| from functools import partial | |
| from operator import concat | |
| from os.path import isfile | |
| from fold import foldl | |
| def _list_files_from(part, prev): | |
| current = "%s/%s" % (prev, part) | |
| if isfile(current): |
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
| def foldl(zero, combine, elements): | |
| if callable(zero): | |
| result = zero() | |
| else: | |
| result = zero | |
| for x in elements: | |
| result = combine(result, x) | |
| return result | |
| def foldr(zero, combine, elements): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #!/usr/bin/env bash | |
| # Author: Sasha Nikiforov | |
| # source of inspiration | |
| # https://stackoverflow.com/questions/41293077/how-to-compile-tensorflow-with-sse4-2-and-avx-instructions | |
| # Detect platform | |
| if [ "$(uname)" == "Darwin" ]; then | |
| # MacOS |
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 | |
| import numpy as np | |
| timesteps = 60 | |
| input_dim = 64 | |
| samples = 10000 | |
| batch_size = 128 | |
| output_dim = 64 | |
| # Test data. |
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html