def _baseNdtriFiniteGradientTest(self, dtype):
<EOL>p = tf.constant(<EOL>np.array([<EOL><NUM_LIT:0.>,<EOL>np.exp(-<NUM_LIT>),<EOL>np.exp(-<NUM_LIT>),<EOL><NUM_LIT:1.> - np.exp(-<NUM_LIT>),<EOL><NUM_LIT:1.> - np.exp(-<NUM_LIT>),<EOL><NUM_LIT:1.>,<EOL>]).astype(dtype))<EOL>_, grads = value_and_gradient(special_math.ndtri, p)<EOL>self.assertAllFinite(self.evaluate(grads[<NUM_LIT:0>]))<EOL>
Verifies that ndtri has finite gradients at interesting points.