class_docstr: A class of Mixnet decoder to get model configuration.
docstr: Encodes a Mixnet block to a string.
docstr_tok: ["Encodes","a","Mixnet","block","to","a","string","."]
code: def _encode_block_string(block):
      """Encodes a Mixnet block to a string."""
  
      def _encode_ksize(arr):
          return ".".join([str(k) for k in arr])
  
      args = [
          "r%d" % block.num_repeat,
          "k%s" % _encode_ksize(block.dw_ksize),
          "a%s" % _encode_ksize(block.expand_ksize),
          "p%s" % _encode_ksize(block.project_ksize),
          "s%d%d" % (block.strides[0], block.strides[1]),
          "e%s" % block.expand_ratio,
          "i%d" % block.in_channels,
          "o%d" % block.out_channels,
      ]
  
      if (
          block.se_ratio is not None
          and block.se_ratio > 0
          and block.se_ratio <= 1
      ):
          args.append("se%s" % block.se_ratio)
      if block.id_skip is False:
          args.append("noskip")
      if block.swish:
          args.append("sw")
      if block.dilated:
          args.append("dilated")
      return "_".join(args)
  
imports: import re
  from collections import namedtuple
label_desc: Use image node_id 2 for calling the MixnetDecoder obj's underlying member method code with example usage: obj._encode_block_string(block) and returns: str, str