class_docstr: Defines an MLP block.
  
  Parameters
  ----------
  layer_sizes
      number of hidden units per layer.
  
  flatten
      toggle whether to flatten the output tensor.
  
  activation
      activation function of the MLP, default is relu.
docstr: Parameters
  ----------
  F
      A module that can either refer to the Symbol API or the NDArray
      API in MXNet.
  x
      Input tensor
  
  Returns
  -------
  Tensor
      Output of the MLP given the input tensor.
docstr_tok: ["Parameters","--","--","--","--","--","F","A","module","that","can","either","refer","to","the","Symbol","API","or","the","NDArray","API","in","MXNet",".","x","Input","tensor","Returns","--","--","--","-","Tensor","Output","of","the","MLP","given","the","input","tensor","."]
code: def hybrid_forward(self, F, x: Tensor) -> Tensor:
      """
      Parameters
      ----------
      F
          A module that can either refer to the Symbol API or the NDArray
          API in MXNet.
      x
          Input tensor
  
      Returns
      -------
      Tensor
          Output of the MLP given the input tensor.
      """
      return self.layers(x)
  
imports: from typing import List
  from mxnet.gluon import nn
  from gluonts.core.component import validated
  from gluonts.mx import Tensor
label_desc: Use image node_id 2 for calling the MLP obj's underlying member method code with example usage: obj.hybrid_forward(F, x) and returns: self