class_docstr: Manages a TensorFlow model for training.
class_docstr_tok: ["Manages","a","TensorFlow","model","for","training","."]
docstr: Initializes the model.
docstr_tok: ["Initializes","the","model","."]
code: def setup_local(self):
      """Initializes the model."""
      logger.debug("Creating model")
      self.model = self.model_creator(self.config)
      self.model.compile(**self.compile_args_creator(self.config))
      self.backend = "tf-local"
      self.size = 1
      self.rank = 0
      from tensorflow.python.distribute import (
          distribution_strategy_context as ds_context,
      )
  
      self.strategy = ds_context.get_strategy()
  
imports: import logging
  import json
  import os
  import numpy
  import ray
  from contextlib import closing
  import logging
  import socket
  from zoo.orca.data.utils import ray_partitions_get_data_label
label_desc: Use image node_id 3 for calling the TFRunner obj's underlying member method code with example usage: obj.setup_local() without return types