Some papers mentioned a tied auto encoder, in which two W matrices are identical, i.e. W_{decode} = W_{encode}.t.
How can I create such a network which two layer share a matrix but use them differently?