Information on how to save this Variable as a slice.
- Class
tf.compat.v1.Variable.SaveSliceInfo - Class
tf.compat.v2.Variable.SaveSliceInfoProvides internal support for saving variables as slices of a larger variable. This API is not public and is subject to change. full_namefull_shape``var_offset``var_shapeView source
__init__(
full_name=None,
full_shape=None,
var_offset=None,
var_shape=None,
save_slice_info_def=None,
import_scope=None
)
Create a SaveSliceInfo.
full_name: Name of the full variable of which thisVariableis a slice.full_shape: Shape of the full variable, as a list of int.var_offset: Offset of thisVariableinto the full variable, as a list of int.var_shape: Shape of thisVariable, as a list of int.save_slice_info_def:SaveSliceInfoDefprotocol buffer. If notNone, recreates the SaveSliceInfo object its contents.save_slice_info_defand other arguments are mutually exclusive.import_scope: Optionalstring. Name scope to add. Only used when initializing from protocol buffer. Computes the spec string used for saving. View source
to_proto(export_scope=None)
Returns a SaveSliceInfoDef() proto.
export_scope: Optionalstring. Name scope to remove. ASaveSliceInfoDefprotocol buffer, or None if theVariableis not in the specified name scope.