parameters: (self, filepath)
docstring: Reads a caffe solver prototxt file and updates the Caffesolver
          instance parameters.
docstring_summary: Reads a caffe solver prototxt file and updates the Caffesolver
          instance parameters.
docstring_tokens: Reads a caffe solver prototxt file and updates the Caffesolver instance parameters .
function: def add_from_file(self, filepath):
          """
          Reads a caffe solver prototxt file and updates the Caffesolver
          instance parameters.
          """
          with open(filepath, 'r') as f:
              for line in f:
                  if line[0] == '#':
                      continue
                  splitLine = line.split(':')
                  self.sp[splitLine[0].strip()] = splitLine[1].strip()
function_tokens: def add_from_file ( self , filepath ) : with open ( filepath , 'r' ) as f : for line in f : if line [ 0 ] == '#' : continue splitLine = line . split ( ':' ) self . sp [ splitLine [ 0 ] . strip ( ) ] = splitLine [ 1 ] . strip ( )