Tensorflow2.0实例化 Model 的两种方式

一、在“函数式API”中,从“输入层”开始,当前层的输入层是前一层的输出层,最后用输入层和输出层建立模型:python inputs = tf.keras.Input(shape=(28,28,1)) x = Conv2D(32,3,activation='relu')(inputs) x = Flatten()(x) x = Dense(128,activation='relu')(x) out
相关文章
相关标签/搜索