parameters: (self, in_, order)
docstring: Set the input channel order for e.g. RGB to BGR conversion
          as needed for the reference ImageNet model.
          N.B. this assumes the channels are the first dimension AFTER transpose.
  
          Parameters
          ----------
          in_ : which input to assign this channel order
          order : the order to take the channels.
              (2,1,0) maps RGB to BGR for example.
docstring_summary: Set the input channel order for e.g. RGB to BGR conversion
          as needed for the reference ImageNet model.
          N.B. this assumes the channels are the first dimension AFTER transpose.
docstring_tokens: Set the input channel order for e . g . RGB to BGR conversion as needed for the reference ImageNet model . N . B . this assumes the channels are the first dimension AFTER transpose .
function: def set_channel_swap(self, in_, order):
          """
          Set the input channel order for e.g. RGB to BGR conversion
          as needed for the reference ImageNet model.
          N.B. this assumes the channels are the first dimension AFTER transpose.
  
          Parameters
          ----------
          in_ : which input to assign this channel order
          order : the order to take the channels.
              (2,1,0) maps RGB to BGR for example.
          """
          self.__check_input(in_)
          if len(order) != self.inputs[in_][1]:
              raise Exception('Channel swap needs to have the same number of '
                              'dimensions as the input channels.')
          self.channel_swap[in_] = order
function_tokens: def set_channel_swap ( self , in_ , order ) : self . __check_input ( in_ ) if len ( order ) != self . inputs [ in_ ] [ 1 ] : raise Exception ( 'Channel swap needs to have the same number of ' 'dimensions as the input channels.' ) self . channel_swap [ in_ ] = order