
TensorFlow
PandaMohist
这个作者很懒,什么都没留下…
展开
-
Tensorflow之矩阵变换
----------------------- 摘自 【维基百科】-----------变换矩阵是数学线性代数中的一个概念。在线性代数中,线性变换能够用矩阵表示。如果T是一个把Rn映射到Rm的线性变换,且x是一个具有n个元素的列向量,那么{\displaystyle T({\vec {x}})=\mathbf {A} {\vec {x}}}我们把m×n的矩阵A,称为T的变换矩阵。目录 [隐藏] ...转载 2018-05-22 13:53:46 · 2868 阅读 · 1 评论 -
tensorflow之 AttributeError: module 'tensorflow' has no attribute 'sub'
学习官方给出的文档,发现报错AttributeError: module 'tensorflow' has no attribute 'sub'代码是这样写的:#!/usr/bin/python3import tensorflow as tfsess = tf.InteractiveSession()x = tf.Variable([1.0, 2.0])...原创 2018-07-28 23:14:28 · 4301 阅读 · 0 评论 -
tensorflow之tf.initialize_all_variables停用
0、注意: 我是用的tensorflow版本:V1.91、学习官方文档,运行下面的代码:#!/usr/bin/python3import tensorflow as tfstate = tf.Variable(0, name = "counter")one = tf.constant(1)new_value = tf.add(state...原创 2018-07-29 21:29:55 · 2827 阅读 · 0 评论 -
tensorflow之【AttributeError: module 'tensorflow' has no attribute 'mul'】
1、注意: 我是用的tensorflow版本:V1.92、运行下面的代码:#!/usr/bin/python3import tensorflow as tfinput1 = tf.constant(3.0)input2 = tf.constant(2.0)input3 = tf.constant(5.0)intermed = tf.add(input2, i...原创 2018-07-29 21:56:10 · 1600 阅读 · 0 评论 -
Mac源码编译安装tensorflow支持CPU(V1.9)
写在前面的话: 白天上班,早上6:00起床学习语法 + 做饭,故只有晚上来弄tensorflow。本来之前已经安装了tensorflow(Pip 安装),但安装完毕后,验证安装,发现各种报错,后来发现,需要从源码编译安装。故此,便拉开了编译安装的大坑之幕。前前后后,一共花了一周吧。毕竟只有晚上那么一会儿功夫。 就在今天,准确的是说是昨天晚上23:00以后,源码编译已经成功了,今天...原创 2018-07-27 22:58:49 · 2029 阅读 · 3 评论 -
tensorflow入门之使用mnist识别手写数字
问题: ....... ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748)解决方法: 打开终端,输入:/Applications/Python\ 3.6/Install\ Certificates.command...原创 2018-08-19 22:20:08 · 410 阅读 · 0 评论