tensor2tensor icon indicating copy to clipboard operation
tensor2tensor copied to clipboard

How be to use the encoder and decoder of transformer in another model for tf2.0?

Open yang182 opened this issue 4 years ago • 0 comments

Description

If I have another model, but in sub-layer of my model, I want to add a transformer-encoder layer and add a tranformer-decoder or multi transformer-decoder in another layer. How can I do? If my model is tensorflow2.0, could it work? ...

Environment information

tf2.0

OS: <your answer here>

$ pip freeze | grep tensor
# your output here

$ python -V
# your output here

For bugs: reproduction and error logs

# Steps to reproduce:
...
# Error logs:
...

yang182 avatar Jul 08 '20 13:07 yang182