随笔分类 - 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
阅读全文
摘要: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
阅读全文