import tensorflow as tf

      foo = base_model.StatsCounter('foo')
      val = foo.Value()
      params = base_layer.BaseLayer.Params()
      inc = foo.IncBy(params, 100)

      tf.global_variables_initializer().run()
      self.assertAllEqual(0, val.eval())
      self.assertAllEqual(100, sess.run(inc))
      self.assertAllEqual(100, val.eval())
      self.assertAllEqual([100, 200], sess.run([val, inc]))
