TensorFlow 2.0 Beta is available Learn more

Module: tf.keras


  • Module tf.compat.v1.keras
  • Module tf.keras
View source on GitHub


activations module

applications module

backend module

callbacks module

constraints module

datasets module

estimator module

experimental module

initializers module

layers module

losses module

metrics module

mixed_precision module

models module

optimizers module

preprocessing module

regularizers module

utils module

wrappers module


class Model: Model groups layers into an object with training and inference features.

class Sequential: Linear stack of layers.


Input(...): Input() is used to instantiate a Keras tensor.