class_docstr: Initializer that restores tensors from a checkpoint.
class_docstr_tok: ["Initializer","that","restores","tensors","from","a","checkpoint","."]
docstr: Build magic (and sparsely documented) shapes_and_slices spec string.
docstr_tok: ["Build","magic","(","and","sparsely","documented",")","shapes_and_slices","spec","string","."]
code: def _partition_spec(self, shape, partition_info):
      """Build magic (and sparsely documented) shapes_and_slices spec string."""
      if partition_info is None:
          return ""  # Empty string indicates a non-partitioned tensor.
      ssi = tf.Variable.SaveSliceInfo(
          full_name=self._var_name,
          full_shape=partition_info.full_shape,
          var_offset=partition_info.var_offset,
          var_shape=shape,
      )
      return ssi.spec
  
file_path: NiftyNet/niftynet/utilities/restore_initializer.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
  from tensorflow.python.ops import init_ops
  from tensorflow.python.ops import io_ops
label_desc: Use image node_id 2 for calling the _Restore obj's underlying member method code with example usage: obj._partition_spec(shape, partition_info) and returns: ssi, str