MCPcopy Create free account
hub / github.com/MorvanZhou/tutorials / _weight_variable

Method _weight_variable

tensorflowTUT/tf20_RNN2.2/full_code.py:107–109  ·  view source on GitHub ↗
(self, shape, name='weights')

Source from the content-addressed store, hash-verified

105 return tf.square(tf.subtract(labels, logits))
106
107 def _weight_variable(self, shape, name='weights'):
108 initializer = tf.random_normal_initializer(mean=0., stddev=1.,)
109 return tf.get_variable(shape=shape, initializer=initializer, name=name)
110
111 def _bias_variable(self, shape, name='biases'):
112 initializer = tf.constant_initializer(0.1)

Callers 2

add_input_layerMethod · 0.95
add_output_layerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected