title: Alternative of numpy.linalg.pinv in tensorflow
body: <p>I am looking for a alternative of numpy.linalg.pinv in tensorflow.
  So far I have found that tensorflow have only <code>tf.matrix_inverse(input, adjoint=None, name=None)</code> which throws an error if matrix in not invertible. </p>