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 | |
| # | |
| # git pre-commit hook that runs a clang-format stylecheck. | |
| # | |
| # This file is part of a set of unofficial pre-commit hooks available | |
| # at github. | |
| # Link: https://github.com/githubbrowser/Pre-commit-hooks | |
| # Contact: David Martin, david.martin.mailbox@googlemail.com | |
| # | |
| # Modifications for clang-format by rene.milk@wwu.de |
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
| // Coliru - http://coliru.stacked-crooked.com/a/655f184e31f1e779 | |
| #include <iostream> | |
| using std::size_t; | |
| using std::string; | |
| using std::ostream; | |
| using std::cout; | |
| using std::endl; | |
| using std::boolalpha; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Retry with Backoff</title> | |
| </head> | |
| <body> | |
| <pre id="result"></pre> | |
| </body> | |
| </html> |
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 java.io.BufferedReader; | |
| import java.io.BufferedWriter; | |
| import java.io.IOException; | |
| import java.lang.StringBuilder; | |
| import java.nio.file.attribute.BasicFileAttributes; | |
| import java.nio.file.Files; | |
| import java.nio.file.FileSystems; | |
| import java.nio.file.FileVisitResult; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; |
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
| # Docker | |
| FROM ubuntu:xenial | |
| # Install developer tools | |
| ENV DEBIAN_FRONTEND noninteractive | |
| RUN apt-get -y update && apt-get -y install \ | |
| build-essential \ | |
| g++-arm-linux-gnueabihf \ | |
| git \ | |
| openjdk-8-jdk \ |
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 b5a99e2174f115f87c0cb3de9d2a2479a0193db2 Mon Sep 17 00:00:00 2001 | |
| From: Koan-Sin Tan <koansin.tan@gmail.com> | |
| Date: Sun, 18 Nov 2018 13:11:38 +0800 | |
| Subject: [PATCH 1/3] add cmdline option to allow running fp32 models with fp16 | |
| Add an option for TFLite benchmark_model to allow running fp32 | |
| models with fp16. Useful when testing NNPAI accelerators with | |
| fp16. | |
| --- | |
| .../lite/tools/benchmark/benchmark_tflite_model.cc | 9 ++++++++- |
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
| # Author: Randal S. Olson (randalolson.com / @randal_olson) | |
| # Uses Tableau's Tableau10 color scheme | |
| # | |
| # In Notebook, use it as follows: | |
| # plt.style.use('https://gist.githubusercontent.com/muendelezaji/75fe7ca33ac3b47730ba85378459a206/raw/1b807615235ff6f4c919b5b70b01a609619e1e9c/tableau10.mplstyle') | |
| figure.figsize: 12, 7 | |
| figure.edgecolor: white | |
| figure.facecolor: white |
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
| # Customize Bash PS1 prompt to show current status of active Git branch. | |
| # Adapted from and inspired by http://mediadoneright.com/content/ultimate-git-ps1-bash-prompt | |
| # Slightly faster prompt, as measured on my machine (TM) | |
| # | |
| # By @muendelezaji, Oct 2015 | |
| # Skip if in zsh | |
| [ "$ZSH" ] && return 0 | |
| # SETUP CONSTANTS |
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 | |
| # ============================================================= | |
| # UPDATE SOURCE | |
| # ============================================================= | |
| # git clone https://github.com/tensorflow/tensorflow | |
| # git checkout -- . | |
| # git pull origin master | |
| # TF_BRANCH=r1.8 | |
| TF_ROOT=/home/tensorflow |
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
| // Derived from paste at https://pastebin.com/iwqG6zvH | |
| // Lightly edited to make it run | |
| // Original discussion: https://t.me/GolangTZ/475 | |
| // You can edit this code! | |
| // Click here and start typing. | |
| package main | |
| import ( | |
| "bufio" |
OlderNewer