class_docstr: Tests for DpgLearning.
    
class_docstr_tok: ["Tests","for","DpgLearning","."]
docstr: Test case: q_tm1_max does not depend on a_tm1_max => exception raised.
      
docstr_tok: ["Test","case",":","q_tm1_max","does","not","depend","on","a_tm1_max","=",">","exception","raised","."]
code: 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
          )
  
file_path: trfl/trfl/dpg_ops_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow.compat.v1
  from trfl import dpg_ops
label_desc: Use image node_id 2 for calling the DpgTest obj's underlying member method code with example usage: obj.testDpgNoGradient() without return types