【发布时间】:2020-10-28 09:10:16
【问题描述】:
以下是 tensorflow 文档中的代码。 (https://www.tensorflow.org/api_docs/python/tf/keras/Model)
inputs = tf.keras.Input(shape=(3,))
x = tf.keras.layers.Dense(4, activation=tf.nn.relu)(inputs)
outputs = tf.keras.layers.Dense(5, activation=tf.nn.softmax)(x)
model = tf.keras.Model(inputs=inputs, outputs=outputs)
在tf.keras.Model中,发送输入输出张量相关信息。
但是没有关于建模的信息(两个密集层和激活函数)
建模信息如何发送到 tf.keras.Model??
谢谢。
【问题讨论】:
标签: tensorflow keras