docstr: Checks that we get the result of the modified gram-schmidt algorithm.
docstr_tok: ["Checks","that","we","get","the","result","of","the","modified","gram-schmidt","algorithm","."]
code: def testGramSchmidt(self):
      """Checks that we get the result of the modified gram-schmidt algorithm."""
      dim, n_vectors = 20, 10
      np_matrix = self.evaluate(
          tf.random.normal([dim, n_vectors], seed=test_util.test_seed())
      )
      matrix = tf.constant(np_matrix)
  
      self.assertAllClose(gs_numpy(np_matrix), gram_schmidt(matrix))
  
      self.assertAllClose(
          gs_numpy(np_matrix)[:, :7], gram_schmidt(matrix, 7)[:, :7]
      )
  
file_path: probability/tensorflow_probability/python/math/gram_schmidt_test.py
imports: import numpy
  import scipy.linalg
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math.gram_schmidt import gram_schmidt
label_desc: Use image node_id 1 for calling the GramSchmidtTest obj's underlying member method code with example usage: obj.testGramSchmidt() without return types