def testDpgNoGradient(self):
    """Test case: q_tm1_max does not depend on a_tm1_max => exception raised.
    """
    with self.test_session():
      a_tm1_max = tf.constant([[0, 1, 0], [1, 1, 2]])
      q_tm1_max = tf.constant([[1], [0]])
      self.assertRaises(ValueError, dpg_ops.dpg, q_tm1_max, a_tm1_max)
Test case: q_tm1_max does not depend on a_tm1_max => exception raised.
    
trfl/dpg_ops_test.py