class_docstr: Mobile Inverted Residual Bottleneck Block.
  
  Args:
      block_args (namedtuple): BlockArgs, defined in utils.py.
      global_params (namedtuple): GlobalParam, defined in utils.py.
      image_size (tuple or list): [image_height, image_width].
  
  References:
      [1] https://arxiv.org/abs/1704.04861 (MobileNet v1)
      [2] https://arxiv.org/abs/1801.04381 (MobileNet v2)
      [3] https://arxiv.org/abs/1905.02244 (MobileNet v3)
class_docstr_tok: ["Mobile","Inverted","Residual","Bottleneck","Block",".","Args",":","block_args","(","namedtuple",")",":","BlockArgs",",","defined","in","utils.py",".","global_params","(","namedtuple",")",":","GlobalParam",",","defined","in","utils.py",".","image_size","(","tuple","or","list",")",":","[","image_height",",","image_width","]",".","References",":","[","1","]","https",":","\/\/arxiv.org\/abs\/1704.04861","(","MobileNet","v1",")","[","2","]","https",":","\/\/arxiv.org\/abs\/1801.04381","(","MobileNet","v2",")","[","3","]","https",":","\/\/arxiv.org\/abs\/1905.02244","(","MobileNet","v3",")"]
docstr: Sets swish function as memory efficient (for training) or standard (for export).
  
  Args:
      memory_efficient (bool): Whether to use memory-efficient version of swish.
docstr_tok: ["Sets","swish","function","as","memory","efficient","(","for","training",")","or","standard","(","for","export",")",".","Args",":","memory_efficient","(","bool",")",":","Whether","to","use","memory-efficient","version","of","swish","."]
code: def set_swish(self, memory_efficient=True):
      """Sets swish function as memory efficient (for training) or standard (for export).
  
      Args:
          memory_efficient (bool): Whether to use memory-efficient version of swish.
      """
      self._swish = (
          MemoryEfficientSwish() if memory_efficient else Swish()
      )
  
imports: import torch
  from torch import nn
  from torch.nn import functional
  from .utils import round_filters, round_repeats, drop_connect, get_same_padding_conv2d, get_model_params, efficientnet_params, load_pretrained_weights, Swish, MemoryEfficientSwish, calculate_output_image_size
label_desc: Use image node_id 3 for calling the MBConvBlock obj's underlying member method code with example usage: obj.set_swish(memory_efficient) without return types