docstr: Initialize session, variables
docstr_tok: ["Initialize","session",",","variables"]
code: def _initialize_session(self, set_logs=True):
      """Initialize session, variables"""
      config = tf.ConfigProto()
      # restrict model GPU memory utilization to min required
      config.gpu_options.allow_growth = True
      self.sess = tf.Session(graph=self.graph, config=config)
  
      self.sess.run(self.global_variables_initializer)
      if set_logs:
          logswriter = tf.summary.FileWriter
          self.summary_writer = logswriter(
              self.logs_path, graph=self.graph
          )
  
imports: import os
  import shutil
  import tensorflow
  import numpy
  import time
  from datetime import timedelta
  import json
  import pickle
label_desc: Use image node_id 6 for calling the BasicModel obj's underlying member method code with example usage: obj._initialize_session(set_logs) without return types