1) The first class you need to know is `Layer`. A Layer encapsulates a state (weights) and some computation (defined in the `call` method).pic.twitter.com/og1hmez7vu
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
The Functional API tends to be more concise than subclassing, & provides a few other advantages (generally the same advantages that functional, typed languages provide over untyped OO development). Learn more about the Functional API: https://www.tensorflow.org/alpha/guide/keras/functional …
However, note that the Functional API can only be used to define DAGs of layers -- recursive networks should be defined as `Layer` subclasses instead. In your research workflows, you may often find yourself mix-and-matching OO models and Functional models.
That's all you need to get started with reimplementing most deep learning research papers in TensorFlow 2.0 and Keras! Now let's check out a really quick example: hypernetworks.
A hypernetwork is a deep neural network whose weights are generated by another network (usually smaller). Let's implement a really trivial hypernetwork: we'll take the `Linear` layer we defined earlier, and we'll use it to generate the weights of... another `Linear` layer.pic.twitter.com/11HjEvBBkh
Another quick example: implementing a VAE in either style, either subclassing (left) or the Functional API (right). I've posted this before. Find what works best for you!pic.twitter.com/3xUliC3nFb
This is the end of this thread. Play with these code examples in this Colab notebook: https://colab.research.google.com/drive/17u-pRZJnKN0gO5XZmq8n5A2bKGrfKEUg … 

Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.