class_docstr: Arm(R) Ethos(TM)-U NPU config class
class_docstr_tok: ["Arm","(","R",")","Ethos","(","TM",")","-U","NPU","config","class"]
docstr: A helper function to convert to brick layout
docstr_tok: ["A","helper","function","to","convert","to","brick","layout"]
code: def _create_layout_block(nhwc_block_config, layout):
      """A helper function to convert to brick layout"""
      if layout == "NHCWB16":
          return [
              nhwc_block_config[0],
              nhwc_block_config[1],
              1 + ((nhwc_block_config[3] - 1) // 16),
              nhwc_block_config[2],
              16,
          ]
      # else it could only be NHWC
      return nhwc_block_config
  
imports: from typing import Tuple, List, Dict, Optional
  from functools import reduce
  import math
  import numpy
  import tvm
  from .None import BlockConfig
  from .None import StripeConfig
  from .None import Propagator
label_desc: Use image node_id 16 for calling the EthosuDeviceConfig obj's underlying member method code with example usage: obj._create_layout_block(nhwc_block_config, layout) and returns: nhwc_block_config, list