2021年3月30日星期二

What is the difference between tf.keras.model and tf.keras.sequential?

In some tf. keras tutorials, I've seen them instantiated their model class like this:

model = tf.keras.Sequential()

While in some places, they use something like this:

model = tf.keras.Model(inputs=input, outputs=output)

But seeing here in the docs, they do seem the same, but I am not sure nor is it explicitly mentioned. What are the differences between the two?

https://stackoverflow.com/questions/66879748/what-is-the-difference-between-tf-keras-model-and-tf-keras-sequential March 31, 2021 at 07:31AM

没有评论:

发表评论