Open lgeiger opened 5 years ago
@afrozenator @lukaszkaiser Do you have a Roadmap for supporting Tensorflow 2.0 and would this interface align with your vision?
@lgeiger : I think you're right, but currently some Keras APIs just don't work with some things (e.g., tracing is broken for more difficult code in functional style, distribution strategies have bugs in sub-class style). So we're basically waiting for TF to correct these bugs before we can add more support.
While we wait, we've made a new version of T2T with JAX that's coming up nicely: https://github.com/tensorflow/tensor2tensor/blob/master/tensor2tensor/trax/README.md
If that sounds interesting to you, I opened an RFC issue to get comments about trax there: https://github.com/tensorflow/tensor2tensor/issues/1478
It's great to see Tensor2Tensor V2 moving to Keras models and layers 🎉
Currently Tensor2Tensor V2 only supports the model subclassing API of Keras. This is great for complex models and custom training loops, but adds a lot of boilerplate for simple feed forward models.
It would be great to support Keras sequential and functional API too. I think this would lower the barrier of entry for adding new models.
The BasicFcRelu example model would look like this when implemented in functional and sequential style:
Note that this example currently fails because the dataset input is not passed correctly to the model function. I'd also prefer the input setup to be handled outside of the model function, though I'm not sure what the right abstraction would be.
@lukaszkaiser What do you think about adding support for this?