Skip to content

Instantly share code, notes, and snippets.

View Razz21's full-sized avatar

Andrzej Kurek Razz21

  • Poland
View GitHub Profile
@Razz21
Razz21 / dense_tied.py
Created January 30, 2019 15:23
Tied weights version for tf.python.keras. Dense layer
from tensorflow.python.framework import tensor_shape
from tensorflow.python.eager import context
from tensorflow.python.framework import common_shapes
from tensorflow.python.framework import ops
from tensorflow.python.framework import tensor_shape
from tensorflow.python.keras import activations
from tensorflow.python.keras import backend as K
from tensorflow.python.keras import constraints
from tensorflow.python.keras import initializers
from tensorflow.python.keras import regularizers