- 博客(6)
- 收藏
- 关注
原创 ubuntu使用bazel编译安装tensorflow c++
按照官网步骤1.下载安装cuda,cudnn(注意版本,我的是cuda9.0+cudnn7.5)2.下载安装bazel,也需要注意版本3.下载tensorflow源码https://github.com/tensorflow/tensorflow4.进入tensorflow文件夹,cd tensorflow./configureconfig按照提示选择,若有gpu,怎在选择cuda...
2019-03-30 00:06:59 2329 1
原创 python 解析xml文件
文件1.xml如下:<annotation> <folder>fist</folder> <filename>0.png</filename> <path>E:/data/0.png</path> <source> <database>Unknown</database&...
2019-03-19 20:55:24 189
原创 tf:failed to alloc 268435456 bytes on host: CUDA_ERROR_OUT_OF_MEMORY
tensorflow/core/framework/allocator.cc:101] Allocation of X exceeds 10% of system memory. 或者 tensorflow.python.framework.errors_impl.InternalError: Dst tensor is not initialized 解决办法:参考链接:https://git...
2019-03-16 14:32:04 2329
原创 tf恢复模型
文件目录如下:恢复模型import tensorflow as tfimport numpy as np#with tf.Session() as sess:sess = tf.Session()saver = tf.train.import_meta_graph('model/gesture.meta')saver.restore(sess, tf.train.latest_ch...
2019-03-14 23:25:28 329 1
原创 clion CMakeLists.txt 编写
cmake_minimum_required(VERSION 3.12)project(p1)set(CMAKE_CXX_STANDARD 14)#添加动态/静态链接库liblink_directories("C:/Program Files (x86)/Intel/RSSDK/lib")#添加include目录include_directories("C:/Program Fil...
2019-03-06 20:18:08 2885
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人