前言 借助最简单的拟合函数给大家示范一下tensorflow2.0 的完整结构 拟合函数 y=ax^2+bx+c 代码 import numpy as np import matplotlib from matplotlib import pyplot as plt import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers,optimizers,losses from tensorflow.keras.callbacks import EarlyStopping from t