The last layers of the tenorflow api create all variables with a tf.get_variablecall tf.get_variable. This ensures that if you want to use the variable again, you can simply use the function tf.get_variableand provide the name of the variable you want to get.
tf.layers.dense : layer_name/kernel. , , :
with tf.variable_scope("layer_name", reuse=True):
weights = tf.get_variable("kernel")
[]: Tensorflow - API. , API - . , → tf.layers.dense(...). , → tf.layers.Dense(...). , . obj.trainable_weights , .