class_docstr: Class and member functions for singa::Snapshot.
  
      
docstr: Snapshot constructor given file name and R/W mode.
  
  Args:
      file (string): snapshot file name.
      mode (boolean): True for write, False for read
      buffer_size (int): Buffer size (in MB), default is 10
docstr_tok: ["Snapshot","constructor","given","file","name","and","R\/W","mode",".","Args",":","file","(","string",")",":","snapshot","file","name",".","mode","(","boolean",")",":","True","for","write",",","False","for","read","buffer_size","(","int",")",":","Buffer","size","(","in","MB",")",",","default","is","10"]
code: def __init__(self, f, mode, buffer_size=10):
      """Snapshot constructor given file name and R/W mode.
  
      Args:
          file (string): snapshot file name.
          mode (boolean): True for write, False for read
          buffer_size (int): Buffer size (in MB), default is 10
      """
      self.snapshot = singa.Snapshot(f.encode(), mode, buffer_size)
  
file_path: singa/python/singa/snapshot.py
imports: from __future__ import absolute_import
  from builtins import object
  from .None import singa_wrap
  from .None import tensor
label_desc: Use image node_id 1 to create a new Snapshot object from inherited base classes: object with example: obj = Snapshot(f, mode, buffer_size)