Skip to content

Instantly share code, notes, and snippets.

@spockwangs
spockwangs / test_rate_limiter.cpp
Created November 12, 2018 11:01
test sleep precision
// Copyright (c) 2018 spockwang.
// All rights reserved.
//
// Author: wbbtiger@gmail.com
//
#include <chrono>
#include <iostream>
#include <thread>
@spockwangs
spockwangs / mnist_serving.cpp
Last active April 30, 2020 06:27
Serve the MNIST softmax model using Tensorflow Serving C++ API.
#include <iostream>
#include <fstream>
#include <arpa/inet.h>
#include "tensorflow_serving/core/availability_preserving_policy.h"
#include "tensorflow_serving/model_servers/platform_config_util.h"
#include "tensorflow_serving/model_servers/server_core.h"
#include "tensorflow_serving/servables/tensorflow/predict_impl.h"
using namespace std;
using namespace tensorflow::serving;