def testAppendHomog(self):
        with tf_ops.Graph().as_default(), self.test_session() as sess:
            npr.seed(0)

            m, n = 3, 4
            a = npr.randn(m, n)
            a_homog = ff.append_homog(array_ops.constant(a))
            np_result = np.hstack([a, np.ones((m, 1))])

            self.assertAllClose(sess.run(a_homog), np_result)
  def testAppendHomog(self):
    with tf_ops.Graph().as_default(), self.test_session() as sess:
      npr.seed(0)

      m, n = 3, 4
      a = npr.randn(m, n)
      a_homog = ff.append_homog(array_ops.constant(a))
      np_result = np.hstack([a, np.ones((m, 1))])

      self.assertAllClose(sess.run(a_homog), np_result)