class_docstr: GraphProfilerCsvWriter
  csv writer for GraphProfiler class.
  
  Example:
  
  .. code-block:: python
  
      from nnabla.utils.profiler import GraphProfiler, GraphProfilerCsvWriter
  
      # Network building comes above
  
      B = GraphProfiler(variable, solver=solver, device_id=0, ext_name=device, n_run=1000)
      B.run()
  
      with open("./profile.csv", "w") as f:
          writer = GraphProfilerCsvWriter(B, file=f)
          writer.write()
  
  Args:
      gb (:py:class:`GraphProfiler <nnabla.utils.profile.GraphProfiler>`):
          Instance of GraphProfiler class which is main executor of profiling.
      file (Python file object):
          Output file object.
          Profile results will be written to the file which is specified by this argument.
class_docstr_tok: ["GraphProfilerCsvWriter","csv","writer","for","GraphProfiler","class",".","Example",":","..","code-block",":",":","python","from","nnabla.utils.profiler","import","GraphProfiler",",","GraphProfilerCsvWriter","#","Network","building","comes","above","B","=","GraphProfiler","(","variable",",","solver=solver",",","device_id=0",",","ext_name=device",",","n_run=1000",")","B.run","(",")","with","open","(","``",".\/profile.csv","''",",","``","w","''",")","as","f",":","writer","=","GraphProfilerCsvWriter","(","B",",","file=f",")","writer.write","(",")","Args",":","gb","(",":","py",":","class",":","`","GraphProfiler","<","nnabla.utils.profile.GraphProfiler",">","`",")",":","Instance","of","GraphProfiler","class","which","is","main","executor","of","profiling",".","file","(","Python","file","object",")",":","Output","file","object",".","Profile","results","will","be","written","to","the","file","which","is","specified","by","this","argument","."]
code: def __init__(self, gb, file=sys.stdout):
      self.file = file
      self.gb = gb
  
      self.fields = [
          "parameter_scope",
          "function_name",
          "inputs_shape",
          "args_info",
          "forward",
          "backward",
          "forward_n_run",
          "backward_n_run",
      ]
  
      self.write_header()
  
imports: from __future__ import division, print_function
  import csv
  import os
  import sys
  import time
  from collections import namedtuple
  from functools import partial
  import nnabla
  from nnabla.ext_utils import import_extension_module
label_desc: Use image node_id 1 to create a new GraphProfilerCsvWriter object  with example: obj = GraphProfilerCsvWriter(gb, file)