![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
TensorFlow
漫天丶飞雪
PYTHON | 机器学习 | 数据分析 | 反反爬虫 | 网络安全
展开
-
TensorFlow 如何指定CPU/GPU上运行
使用 GPUs支持的设备在一套标准的系统上通常有多个计算设备. TensorFlow 支持 CPU 和 GPU 这两种设备. 我们用指定字符串strings来标识这些设备. 比如:"/cpu:0": 机器中的 CPU "/gpu:0": 机器中的 GPU, 如果你有一个的话. "/gpu:1": 机器中的第二个 GPU, 以此类推...如果一个 TensorFlow 的 ope...转载 2019-10-12 09:38:34 · 1443 阅读 · 0 评论 -
TenSorFlow警告 Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX
运行环境 : python 3.6.0第三方库 : tensorflow 1.9.0问题 : 安装的 tensorflow 是 CPU 版本的 , 使用的 pip install tensorflow 清华镜像 , 安装一切顺利 , 程序也可以正常跑 , 问题是在程序运行过程中会本出来这么一句红色字体 , 虽然程序能跑 , 但是心里总觉得出现这种东西就是特别的不舒服 ...原创 2019-07-25 09:29:10 · 1603 阅读 · 0 评论 -
TensorFlow 报错 ValueError: Can't load save_path when it is None.
运行环境 : python 3.5.0第三方库 : tensorflow 1.9.0TensorFlow 的模型检测时候报错了 , 报的什么错误呢ValueError: Can't load save_path when it is None.嗯 , 什么鬼东西 , 一天天的 , 改不完的 bug , 百度吧 , , , , , , 百度无果 , 本篇完毕完了之后...原创 2019-07-24 15:42:51 · 11810 阅读 · 8 评论 -
tensorflow 之 tf.argmax()解析
运行环境 : python 3.6.0第三方库 : tensorflow 1.9.0用 tensorflow 做 CNN_TEXT 文本分类时,看到这个API,然后去官网查了一下,再看了一下别的资料,算是明白它的处理方式了。tf.argmax 可以认为就是 np.argmax 。应该说 tensorflow 使用 numpy 实现的这个 API 。简单的说 , tf.ar...原创 2019-07-26 12:24:52 · 742 阅读 · 0 评论 -
tensorflow 之 tf.shape()
运行环境 : python 3.6.0第三方库 : tensorflow 1.9.0tf.shape()shape( input, name=None, out_type=dtypes.int32)例如 :将矩阵的维度输出为一个维度矩阵 :# -*- encoding: utf-8 -*-import tensorflow as ...原创 2019-07-28 11:15:20 · 519 阅读 · 0 评论