class_docstr: Trackable for stacked tables generated from sparse core.
class_docstr_tok: ["Trackable","for","stacked","tables","generated","from","sparse","core","."]
code: def __init__(self, stacked_layouts, table_to_config):
      self.vars = {}
      self._stacked_layouts = stacked_layouts
      for table_layout in stacked_layouts:
          variable_shape = tuple(table_layout.unsharded_shape)
          self.vars[table_layout.table_name] = tf_variables.Variable(
              name=table_layout.table_name,
              initial_value=functools.partial(
                  table_to_config[table_layout.table_name].initializer,
                  variable_shape,
                  dtype=dtypes.float32,
              ),
              shape=variable_shape,
              dtype=dtypes.float32,
          )
  
imports: import functools
  from typing import Any, Dict
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework.constant_op import constant
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import manip_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.trackable import base
label_desc: Use image node_id 1 to create a new SparseCoreStackedTableTrackable object from inherited base classes: trackable_base with example: obj = SparseCoreStackedTableTrackable(stacked_layouts, table_to_config)