parameters: (caffe_net, filename, rankdir='LR')
docstring: Draws a caffe net, and saves it to file using the format given as the
      file extension. Use '.raw' to output raw text that you can manually feed
      to graphviz to draw graphs.
  
      Parameters
      ----------
      caffe_net : a caffe.proto.caffe_pb2.NetParameter protocol buffer.
      filename : string
          The path to a file where the networks visualization will be stored.
      rankdir : {'LR', 'TB', 'BT'}
          Direction of graph layout.
docstring_summary: Draws a caffe net, and saves it to file using the format given as the
      file extension. Use '.raw' to output raw text that you can manually feed
      to graphviz to draw graphs.
docstring_tokens: Draws a caffe net and saves it to file using the format given as the file extension . Use . raw to output raw text that you can manually feed to graphviz to draw graphs .
function: def draw_net_to_file(caffe_net, filename, rankdir='LR'):
      """Draws a caffe net, and saves it to file using the format given as the
      file extension. Use '.raw' to output raw text that you can manually feed
      to graphviz to draw graphs.
  
      Parameters
      ----------
      caffe_net : a caffe.proto.caffe_pb2.NetParameter protocol buffer.
      filename : string
          The path to a file where the networks visualization will be stored.
      rankdir : {'LR', 'TB', 'BT'}
          Direction of graph layout.
      """
      ext = filename[filename.rfind('.')+1:]
      with open(filename, 'wb') as fid:
          fid.write(draw_net(caffe_net, rankdir, ext))
function_tokens: def draw_net_to_file ( caffe_net , filename , rankdir = 'LR' ) : ext = filename [ filename . rfind ( '.' ) + 1 : ] with open ( filename , 'wb' ) as fid : fid . write ( draw_net ( caffe_net , rankdir , ext ) )