第1章 NumPy快速入门 1.1 Python 1.2 动手实践:在不同的操作系统上安装Python 1.3 Windows 1.4 动手实践:在Windows上安装NumPy、Matplotlib、SciPy和IPython 1.5 Linux 1.6 动手实践:在Linux上安装NumPy、Matplotlib、SciPy和IPython 1.7 Mac OS X 1.8 动手实践:在Mac OS X上安装NumPy、Matplotlib和SciPy 1.9 动手实践:
1、矩阵加法使用
a = np.random.random((3,3))
b = np.random.randint(0,9,(3,3))
ad = tf.add(a,b)
2、矩阵乘法注意
# tensorflow 使用矩阵乘法都必须使用相同类型的数据,否则报错。
a = np.random.random((5,3))
b = np.random.randint(0,9,(3,6))
c = tf.tensordot(a.astype(np.float),b.astype(np.float