class_docstr: Builds a DNN subnetwork for AdaNet.
docstr: See `adanet.subnetwork.Builder`.
docstr_tok: ["See","`","adanet.subnetwork.Builder","`","."]
code: def build_subnetwork_train_op(
      self,
      subnetwork,
      loss,
      var_list,
      labels,
      iteration_step,
      summary,
      previous_ensemble,
  ):
      """See `adanet.subnetwork.Builder`."""
  
      # NOTE: The `adanet.Estimator` increments the global step.
      update_ops = tf.compat.v1.get_collection(
          tf.compat.v1.GraphKeys.UPDATE_OPS
      )
      with tf.control_dependencies(update_ops):
          return self._optimizer.minimize(loss=loss, var_list=var_list)
  
file_path: adanet/adanet/examples/simple_dnn.py
imports: import functools
  import adanet
  import tensorflow.compat.v2
label_desc: Use image node_id 3 for calling the _SimpleDNNBuilder obj's underlying member method code with example usage: obj.build_subnetwork_train_op(subnetwork, loss, var_list, labels, iteration_step, summary, previous_ensemble) and returns: self