本人在Youtube上学习的一门叫TensorFlow 2.0 Complete Course - Python Neural Networks for Beginners Tutorial的课程,在此做的笔记,还在学习每天都会逐渐完善。
目录
1. Tensorflow Introduciton1.1 TensorFlow 2.0 Introduction
1. Tensorflow Introduciton
1.1 TensorFlow 2.0 Introduction
TensorFlow install
pip install tensorflow
Tensorflow 的应用
Image ClassificationData ClusteringRegressionReiforcement LearningNatural Language Processing
使用tensorflow的Tensor
import tensorflow
as tf
print(tf
.version
)
rank1_tensor
= tf
.Variable
(["test","Ok","Tim"],tf
.string
)
rank2_tensor
= tf
.Variable
(["Test","OK"],["Yes","No"],tf
.string
)
tf
.rank
(rank1_tensor
)
t
= tf
.ones
([5,5,5])
t
= tf
.zeros
([5,5,5])
te
= tf
.reshape
(t
,[125,-1] )
print(t
)
print(te
)
Tensor的所有类型
VariableConstantPlaceholderSparseTensor除了Variable,其他的类型,在执行的时候都不可改变。