class_docstr: Tests for DpgLearning.
    
class_docstr_tok: ["Tests","for","DpgLearning","."]
docstr: Tests the gradient qd/qa produced by the DPGLearner is correct.
docstr_tok: ["Tests","the","gradient","qd\/qa","produced","by","the","DPGLearner","is","correct","."]
code: def testDpgDqda(self):
      """Tests the gradient qd/qa produced by the DPGLearner is correct."""
      with self.test_session() as sess:
          sess.run(tf.global_variables_initializer())
          value_grad = np.transpose(self.w.eval())[0]
          for i in range(int(self.batch_size)):
              self.assertAllClose(
                  self.dpg_extra.dqda.eval()[i], value_grad
              )
  
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 3 for calling the DpgTest obj's underlying member method code with example usage: obj.testDpgDqda() without return types