code: def __init__(self, opt, var_list):
      self.opt = opt
      self.var_list = var_list
      self.accum_vars = {
          tv: tf.Variable(
              tf.zeros_like(tv.read_value()), trainable=False
          )
          for tv in var_list
      }
      self.total_loss = tf.Variable(
          tf.zeros(shape=[], dtype=tf.float32)
      )
      self.count_loss = tf.Variable(
          tf.zeros(shape=[], dtype=tf.float32)
      )
  
file_path: gpt-2-simple/gpt_2_simple/src/accumulate.py
imports: import argparse
  import json
  import os
  import numpy
  import tensorflow
  import time
label_desc: Use image node_id 1 to create a new AccumulatingOptimizer object from inherited base classes: object with example: obj = AccumulatingOptimizer(opt, var_list)