class_docstr: FeedForward controller module.
  
  
  Single feedforward linear layer, wrapped as an RNN core for convenience. There
  is no computation performed on the state.
  
      y <- activation(linear(x))
      s_t+1 <- s_t
class_docstr_tok: ["FeedForward","controller","module",".","Single","feedforward","linear","layer",",","wrapped","as","an","RNN","core","for","convenience",".","There","is","no","computation","performed","on","the","state",".","y","<","-","activation","(","linear","(","x",")",")","s_t+1","<","-","s_t"]
docstr: Initializes the FeedForward Module.
  
  Args:
    hidden_size: number of hidden units in linear layer.
    activation: op for output activations.
    dtype: datatype of inputs to accept, defaults to tf.float32.
    name: module name (default 'feed_forward').
docstr_tok: ["Initializes","the","FeedForward","Module",".","Args",":","hidden_size",":","number","of","hidden","units","in","linear","layer",".","activation",":","op","for","output","activations",".","dtype",":","datatype","of","inputs","to","accept",",","defaults","to","tf.float32",".","name",":","module","name","(","default","'feed_forward","'",")","."]
code: def __init__(
      self,
      hidden_size,
      activation=tf.nn.tanh,
      dtype=tf.float32,
      name=None,
  ):
      """Initializes the FeedForward Module.
  
      Args:
        hidden_size: number of hidden units in linear layer.
        activation: op for output activations.
        dtype: datatype of inputs to accept, defaults to tf.float32.
        name: module name (default 'feed_forward').
      """
      super().__init__(name=name)
      self.linear = linear.Linear(hidden_size)
      self.dtype = dtype
      self._activation = activation
  
file_path: sonnet/sonnet/src/nets/dnc/control.py
imports: import sys
  from sonnet.src import linear
  from sonnet.src import recurrent
  import tensorflow
label_desc: Use image node_id 1 to create a new FeedForward object from inherited base classes: recurrent with example: obj = FeedForward(hidden_size, activation, dtype, name)