Skip to content

Instantly share code, notes, and snippets.

[05/05/2019, 05:30:34 PM] WARNING (tensorflow/MainThread) From mnist.py:151: read_data_sets (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use alternatives such as official/mnist/dataset.py from tensorflow/models.
[05/05/2019, 05:30:34 PM] WARNING (tensorflow/MainThread) From D:\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py:260: maybe_download (from tensorflow.contrib.learn.python.learn.datasets.base) is deprecated and will be removed in a future version.
Instructions for updating:
Please write your own downloading logic.
[05/05/2019, 05:30:34 PM] WARNING (tensorflow/MainThread) From D:\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py:262: extract_images (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.data to implement this functio
cmd : WARNING:tensorflow:From mnist.py:151: read_data_sets (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
At C:\Users\Pah\nni\experiments\UkN7dnpr\trials\nBIpG\run.ps1:9 char:1
+ cmd /c python mnist.py 2>C:\Users\Pah\nni\experiments\UkN7dnpr\trials ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (WARNING:tensorf...future version.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Instructions for updating:
Please use alternatives such as official/mnist/dataset.py from tensorflow/models.
@crackcomm
crackcomm / output_shape_for.py
Created April 29, 2019 22:28 — forked from Erotemic/output_shape_for.py
Output shape information for pytorch
import math
import torch
import torch.nn as nn
import torchvision
REGISTERED_OUTPUT_SHAPE_TYPES = []
def compute_type(type):
def _wrap(func):
package main
import (
"encoding/binary"
"fmt"
"net/http"
"github.com/cespare/xxhash"
"github.com/ipfn/ipfn/pkg/digest"
"github.com/ipfn/ipfn/pkg/trie"
// Copyright © 2017-2018 The IPFN Developers. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
[1/51] Creating pkg-config file
[2/51] Building CXX object src/third_party/smf/src/core/CMakeFiles/smf.dir/rpc_letter.cc.o
[3/51] Building CXX object src/third_party/smf/src/core/CMakeFiles/smf.dir/random.cc.o
[4/51] Building CXX object src/third_party/smf/src/smfc/CMakeFiles/smfc.dir/cpp_generator.cc.o
[5/51] Building CXX object src/third_party/smf/src/core/CMakeFiles/smf.dir/compression.cc.o
[6/51] Building CXX object src/third_party/smf/src/smfc/CMakeFiles/smfc.dir/go_generator.cc.o
[7/51] Building CXX object src/third_party/smf/src/smfc/CMakeFiles/smfc.dir/main.cc.o
[8/51] Building CXX object src/third_party/smf/src/smfc/CMakeFiles/smfc.dir/codegen.cc.o
[9/51] Linking CXX executable src/third_party/smf/src/smfc/smfc
Using built-in specs.
[1/51] Creating pkg-config file
[2/51] Building CXX object src/third_party/smf/src/core/CMakeFiles/smf.dir/rpc_letter.cc.o
[3/51] Building CXX object src/third_party/smf/src/core/CMakeFiles/smf.dir/random.cc.o
[4/51] Building CXX object src/third_party/smf/src/smfc/CMakeFiles/smfc.dir/cpp_generator.cc.o
[5/51] Building CXX object src/third_party/smf/src/core/CMakeFiles/smf.dir/compression.cc.o
[6/51] Building CXX object src/third_party/smf/src/smfc/CMakeFiles/smfc.dir/go_generator.cc.o
[7/51] Building CXX object src/third_party/smf/src/smfc/CMakeFiles/smfc.dir/main.cc.o
[8/51] Building CXX object src/third_party/smf/src/smfc/CMakeFiles/smfc.dir/codegen.cc.o
[9/51] Linking CXX executable src/third_party/smf/src/smfc/smfc
Using built-in specs.
@crackcomm
crackcomm / benchmark.md
Last active March 1, 2018 19:58
Seastar vs Golang HTTP Server benchmark.
  • -c - concurrency
  • -t - threads

Seastar port 10000 Golang port 10001

~ wrk -t8 -c400 -d30s http://127.0.0.1:10000        
Running 30s test @ http://127.0.0.1:10000
#
# Original source:
# https://gist.github.com/sofyanhadia/37787e5ed098c97919b8c593f0ec44d8
#
# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip
# Unzip
unzip protoc-3.2.0-linux-x86_64.zip -d protoc3
package main
import (
"fmt"
"log"
"net/http"
"github.com/crackcomm/flex"
)