I hereby claim:
- I am iiSeymour on github.
- I am iiseymour (https://keybase.io/iiseymour) on keybase.
- I have a public key whose fingerprint is 3589 AD45 A74E 7520 AD32 55FE ADB7 73F1 3207 A97E
To claim this, I am signing this object:
| >>> import numpy as np | |
| >>> read = np.array([ | |
| [0., 97., 0., 0.,], | |
| [0., 4., 4., 87.,], | |
| [71., 10., 2., 6.,], | |
| [8., 5., 65., 9.,], | |
| [7., 62., 11., 6.,], | |
| [4., 19., 7., 55.,], | |
| [51., 9., 6., 17.,], | |
| [15., 4., 49., 12.,], |
| import torch | |
| import time | |
| torch.backends.cudnn.benchmark = True | |
| BATCH_SIZE = 64 | |
| LAYER_SIZE = 384 | |
| TIME_SERIES_LEN = 1600 | |
| NUM_LAYERS = 5 | |
| WARMUP_ROUNDS = 5 | |
| BENCHMARK_ROUNDS = 10 |
| #!/usr/bin/env python | |
| import os | |
| os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' | |
| import sys | |
| import torch | |
| import numpy as np | |
| import tensorflow as tf | |
| from time import perf_counter |
| import torch | |
| import torch.onnx.symbolic | |
| def sym_patch(func, op1, op2): | |
| def replace(g, node, dim_or_y=None, keepdim=None): | |
| ops = func(g, node, dim_or_y, keepdim) | |
| if type(ops) == tuple: | |
| if ops[0].node().kind() == "onnx::ATen": | |
| dim = torch.onnx.symbolic._get_const(dim_or_y, 'i', 'dim') |
| #!/usr/bin/env python | |
| # | |
| # Short Python example of why `ls | wc -l` works by @iiSeymour | |
| # | |
| # try: | |
| # python isatty.py | |
| # and: | |
| # python isatty.py | cat | |
| # | |
| # Explanation http://www.ginac.de/~kreckel/fileno/ |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import json | |
| import requests | |
| __URL__ = "http://push.geckoboard.com/v1/send/" | |
| def push(chart, widgit_id, api_key): |
| { | |
| "metadata": { | |
| "name": "" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ | |
| { |
| filter { | |
| grok { | |
| type => "trac" | |
| match => [ "message", "%{DATE-US} %{TIME},%{INT} Trac.%{WORD}. %{WORD:level}: %{GREEDYDATA:text}" ] | |
| } | |
| multiline { | |
| type => "trac" | |
| pattern => "%{DATE-US} %{TIME},%{INT} Trac.%{WORD}. ERROR: %{GREEDYDATA:text}" |