def testResults(self, initializer):
    """Tests zero updates when last layer is initialized to zero."""
    shape = [10]
    gradients = tf.random_normal(shape)
    net = networks.CoordinateWiseDeepLSTM(layers=(1, 1),
                                          initializer=initializer)
    state = net.initial_state_for_inputs(gradients)
    update, _ = net(gradients, state)

    with self.test_session() as sess:
      sess.run(tf.global_variables_initializer())
      update_np = sess.run(update)
      self.assertAllEqual(update_np, np.zeros(shape))
Tests zero updates when last layer is initialized to zero.
networks_test.py