class_docstr: Code emitter class.
class_docstr_tok: ["Code","emitter","class","."]
docstr: Emits activation tensors, including inputs/outputs.
docstr_tok: ["Emits","activation","tensors",",","including","inputs\/outputs","."]
code: def _emit_activation_buffers(self, name, out_c):
      # pylint: disable=unused-argument
      """Emits activation tensors, including inputs/outputs."""
  
      out_c.write(
          textwrap.dedent(
              f"""\
          //
          // Inputs:
          //
          """
          )
      )
  
      # shape/buffer
      for dl_tensor_name in self._input_data:
          tensor = self._input_data[dl_tensor_name]
          self._emit_tensor_init(dl_tensor_name, tensor, out_c)
          out_c.write(f"\n")
      out_c.write(f"\n")
  
      # tensor
      idx = 0
      out_c.write(f"AI_STATIC ai_tensor * _InputsList[] = {{ \n")
      for dl_tensor_name in self._input_data:
          out_c.write(f"  &{dl_tensor_name}, // [{idx}]\n")
          idx = idx + 1
      out_c.write(f"}}; \n")
      out_c.write(f"\n")
  
      out_c.write(
          textwrap.dedent(
              f"""\
          //
          // Activations:
          //
          """
          )
      )
      for dl_tensor_name in self._activations:
          tensor = self._activations[dl_tensor_name]
          self._emit_tensor_init(dl_tensor_name, tensor, out_c)
      out_c.write(f"\n")
  
      # Outputs:
      out_c.write(
          textwrap.dedent(
              f"""\
          //
          // Outputs:
          //
          """
          )
      )
      for dl_tensor_name in self._output_data:
          tensor = self._output_data[dl_tensor_name]
          self._emit_tensor_init(dl_tensor_name, tensor, out_c)
          out_c.write(f"\n")
      out_c.write(f"\n")
  
      idx = 0
      out_c.write(f"AI_STATIC ai_tensor * _OutputsList[] = {{ \n")
      for dl_tensor_name in self._output_data:
          out_c.write(f"  &{dl_tensor_name}, // [{idx}]\n")
          idx = idx + 1
      out_c.write(f"}}; \n")
      out_c.write(f"\n")
  
imports: import contextlib
  import json
  import os
  import re
  import shutil
  import tarfile
  import textwrap
  from datetime import datetime
  import numpy
  import tvm
  from tvm.contrib import utils
label_desc: Use image node_id 16 for calling the CodeEmitter obj's underlying member method code with example usage: obj._emit_activation_buffers(name, out_c) without return types