class_docstr: Transposes last dimension. Useful for adding to a sequential block.
class_docstr_tok: ["Transposes","last","dimension",".","Useful","for","adding","to","a","sequential","block","."]
code: def forward(self, x):
      return x.transpose(-2, -1)
  
imports: import math
  import random
  from typing import Dict, List, Tuple
  import torch
  from omegaconf import DictConfig
  from omegaconf.dictconfig import DictConfig
  from torch import nn
  from torch.nn import functional
  from nemo.collections.common.parts import form_attention_mask, transformer_weights_init
  from nemo.collections.nlp.modules.common.transformer import TransformerEncoder
  from nemo.core.classes.module import NeuralModule
  from nemo.core.neural_types import AcousticEncodedRepresentation, AudioSignal, LengthsType, NeuralType, SpectrogramType
label_desc: Use image node_id 1 for calling the TransposeLast obj's underlying member method code with example usage: obj.forward(x) and returns: x