pytorch/examples

Why there is no tanh activation at the end of TransformerNet?

Open

#570 opened on Jun 3, 2019

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (21,634 stars) (9,429 forks)batch import
good first issue

Description

In Fast Style Transfer, it seems like there is no tanh layer at the end of TransformerNet model. There is no gurantee that output values fti in certain range e.g. [0, 1] for PIL image.

Using only deconv is also valid? How does it work?

Contributor guide