Skip to content
Advertisement

How to tie weights between transposed layers?

I have try to tied weights in tensorflow 2.0 keras, with below code. but it shows this errors? does anyone know how to write tied weights dense layer ?

JavaScript

Errors

JavaScript

Advertisement

Answer

It took much of my time to figure out, but I think this is the way of Tied Weights by subclassing Keras Dense layer.

JavaScript

Hope it can help someone else.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement