vineetjohn / linguistic-style-transfer

Neural network parametrized objective to disentangle and transfer style and content in text
Apache License 2.0
139 stars 33 forks source link

Mask zeros for the RNN inputs #5

Closed vineetjohn closed 6 years ago

vineetjohn commented 6 years ago

Add a masking layers of 0s and 1s to the RNN encoder.

vineetjohn commented 6 years ago

https://www.tensorflow.org/api_docs/python/tf/sequence_mask

To be used in conjunction with https://www.tensorflow.org/api_docs/python/tf/boolean_mask

vineetjohn commented 6 years ago

https://danijar.com/variable-sequence-lengths-in-tensorflow/ EDIT: This tutorial precedes decoder implementations in Tensorflow

vineetjohn commented 6 years ago

Cannot be done because tensors cannot have variable lengths