ihe*_*ers 6 machine-learning tensorflow tensorflow2.0
tf.keras.models.Sequential()
vs 和有什么区别tf.keras.Sequential()
?我不太了解它们之间的差异。有人可以向我解释一下吗?我是 TensorFlow 新手,但对机器学习有一些基本了解。
>>> tf.keras.models.Sequential==tf.keras.Sequential
True
Run Code Online (Sandbox Code Playgroud)
两者与 TFv2 相同。你可以使用后者。
添加到此提交中。
小智 4
tf.keras.models.Sequential
Run Code Online (Sandbox Code Playgroud)
和
tf.keras.Sequential
Run Code Online (Sandbox Code Playgroud)
做同样的事情,但它们来自不同版本的张量流。根据文档(TensorFlow 2.0),tf.keras.Sequential
是调用此函数的最新方法。
归档时间: |
|
查看次数: |
4612 次 |
最近记录: |