class_docstr: A simple memory hook for cupy measuring memory usage cumulatively.
  
  Attributes:
      used_bytes (int): cumulative bytes that application used from cupy
          memory pool.
      acquired_bytes (int): cumulative bytes that cupy memory pool acquired
          from GPU device.
class_docstr_tok: ["A","simple","memory","hook","for","cupy","measuring","memory","usage","cumulatively",".","Attributes",":","used_bytes","(","int",")",":","cumulative","bytes","that","application","used","from","cupy","memory","pool",".","acquired_bytes","(","int",")",":","cumulative","bytes","that","cupy","memory","pool","acquired","from","GPU","device","."]
code: def __init__(self):
      self.used_bytes = 0
      self.acquired_bytes = 0
  
imports: import collections
  import sys
  import typing
  from chainer.backends import cuda
  from chainer import function_hook
label_desc: Use image node_id 1 to create a new CupyMemoryCumulativeHook object from inherited base classes: MemoryHook with example: obj = CupyMemoryCumulativeHook()