'Load the layer definitions from the prototxt.'

def load(self):

    self.params = get_caffe_resolver().NetParameter()
    with open(self.def_path, 'rb') as def_file:
        text_format.Merge(def_file.read(), self.params)
