Skip to content

Instantly share code, notes, and snippets.

View test_rate_limiter.cpp
// Copyright (c) 2018 spockwang.
// All rights reserved.
//
// Author: wbbtiger@gmail.com
//
#include <chrono>
#include <iostream>
#include <thread>
@spockwangs
spockwangs / mnist_serving.cpp
Last active Apr 30, 2020
Serve the MNIST softmax model using Tensorflow Serving C++ API.
View mnist_serving.cpp
#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;
You can’t perform that action at this time.