docstr: Break it out into functions?
          
docstr_tok: ["Break","it","out","into","functions","?"]
code: def build_tensorflow_model(self, batch_size):
      """Break it out into functions?"""
  
      # Set input/output shapes for reference during inference.
      self.model_input_shape = tuple(
          [batch_size] + list(self.input_shape)
      )
      self.model_output_shape = tuple(
          [batch_size] + list(self.input_shape)
      )
  
      self.latent = tf.placeholder(tf.float32, [None, self.latent_size])
      self.reference_images = tf.placeholder(
          tf.float32, [None] + list(self.model_input_shape)[1:]
      )
      self.synthetic_images = generator(
          self, self.latent, depth=self.depth, name="generator"
      )
  
      (
          self.discriminator_real,
          self.discriminator_real_logits,
      ) = discriminator(
          self,
          self.reference_images,
          depth=self.depth + 1,
          name="discriminator",
      )
      (
          self.discriminator_fake,
          self.discriminator_fake_logits,
      ) = discriminator(
          self,
          self.synthetic_images,
          depth=self.depth + 1,
          name="discriminator",
          reuse=True,
      )
  
      t_vars = tf.trainable_variables()
      self.d_vars = [
          var for var in t_vars if "discriminator" in var.name
      ]
      self.g_vars = [var for var in t_vars if "generator" in var.name]
      self.saver = tf.train.Saver(self.g_vars + self.d_vars)
  
      self.calculate_losses()
  
      if self.hyperverbose:
          self.model_summary()
  
file_path: DeepNeuro/deepneuro/models/gan.py
imports: import numpy
  import tensorflow
  import os
  from deepneuro.models.tensorflow_model import TensorFlowModel
  from deepneuro.utilities.util import add_parameter
  from deepneuro.models.blocks import generator, discriminator
  from deepneuro.models.cost_functions import wasserstein_loss
label_desc: Use image node_id 4 for calling the GAN obj's underlying member method code with example usage: obj.build_tensorflow_model(batch_size) without return types