随笔分类 -  Tensorflow

摘要:1 # coding: utf-8 2 3 """张量的基本运算""" 4 5 # In[9]: 6 7 A = tf.constant([[1., 2.], [3., 4.]]) 8 B = tf.constant([[5., 6.], [7., 8.]]) 9 10 # output: 11 1 阅读全文
posted @ 2019-11-20 16:24 Parallax 阅读(145) 评论(0) 推荐(0) 编辑
摘要:1 import tensorflow as tf 2 import numpy as np 3 """ 4 tf.keras.datasets 获得数据集 并预处理 5 """ 6 class MNISTLoader(): 7 def __init__(self): #加载类的构造函数 8 mni 阅读全文
posted @ 2019-11-20 15:46 Parallax 阅读(563) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示