![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tf
qq_26669719
这个作者很懒,什么都没留下…
展开
-
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 · 312 阅读 · 1 评论 -
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 · 2319 阅读 · 0 评论 -
tfrecords
参考链接转载 2019-03-16 16:19:39 · 105 阅读 · 0 评论 -
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 · 2322 阅读 · 1 评论 -
cifar10+tfrecords
import osimport tensorflow as tfimport cv2import pickleimport matplotlib.pyplot as plt%matplotlib inline#note:download cifar10 dataset firstdef load_data(path): with open(path,'rb') as f:...原创 2019-04-10 23:01:47 · 393 阅读 · 0 评论 -
deepin 安装tensorflow-gpu
os :deepin15.9安装完anaconda后,执行conda install tensorflow-gpu即可自动安装tf gpu版本(会自动下载cuda-toolkits和cudnn),一般情况下回报错: ImportError: libcuda.so.1: cannot open shared object file: No such file or directory...原创 2019-04-07 23:48:38 · 419 阅读 · 0 评论 -
resnet-tf
import tensorflow as tfdef resnet(inputs,num_classes=21, n_blocks=(3, 4, 23, 3), filter_list=(64, 128, 256, 512)): def _conv_bn_relu(inputs, filters, k, s, padding='same', relu=True): x ...原创 2019-04-19 20:10:40 · 261 阅读 · 0 评论 -
ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
执行命令:sudo ldconfig /usr/local/cuda-10.0/lib64原创 2019-06-12 20:15:48 · 1128 阅读 · 0 评论