#参考资料
###下载单个文件,默认将输出打印到标准输出中(STDOUT)中
curl http://www.centos.org
all: | |
nvcc -arch=sm_35 -std=c++11 -O2 -Icudnn/include -L cudnn/lib64 -L /usr/local/lib test.cu -o test -lcudnn -I. -D$(FLAGS) |
import os, argparse | |
import tensorflow as tf | |
from tensorflow.python.framework import graph_util | |
dir = os.path.dirname(os.path.realpath(__file__)) | |
def freeze_graph(model_folder, output_nodes='y_hat', | |
output_filename='frozen-graph.pb', | |
rename_outputs=None): |
{0: 'tench, Tinca tinca', | |
1: 'goldfish, Carassius auratus', | |
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias', | |
3: 'tiger shark, Galeocerdo cuvieri', | |
4: 'hammerhead, hammerhead shark', | |
5: 'electric ray, crampfish, numbfish, torpedo', | |
6: 'stingray', | |
7: 'cock', | |
8: 'hen', | |
9: 'ostrich, Struthio camelus', |
#参考资料
###下载单个文件,默认将输出打印到标准输出中(STDOUT)中
curl http://www.centos.org
// a) As Mac OS X does not have byteswap.h | |
// needed this for a c util I had used over the years on linux. | |
// did not find a solution to stopgap via macports, sadly, but this did the trick | |
#if HAVE_BYTESWAP_H | |
#include <byteswap.h> | |
#else | |
#define bswap_16(value) \ | |
((((value) & 0xff) << 8) | ((value) >> 8)) |