original_docstring: 
          Perform dense/fully connected layer with a activation function
          
docstring: Perform dense/fully connected layer with a activation function
docstring_tokens: Perform dense / fully connected layer with a activation function
code: def _build(self, inputs):
          """
          Perform dense/fully connected layer with a activation function
          """
          self._layer = snt.Linear(self._output_size, self._add_bias, self._initializers,
                                   self._partitioners, self._regularizers, name='LinearWx')
          output = self._layer(inputs)
          # Add GraphKeys to collection
          if self._add_bias:
              tf.add_to_collection(GraphKeys.BIASES, self._layer.b)
  
          tf.add_to_collection(GraphKeys.WEIGHTS, self._layer.w)
          tf.add_to_collection(GraphKeys.PRE_ACTIVATIONS, output)
  
          if self._activation_fn is None or self._activation_fn == tf.identity:
              return output
  
          output = self._activation_fn(output)
  
          # Add to GraphKeys for activation output
          tf.add_to_collection(GraphKeys.ACTIVATIONS, output)
          return output
code_tokens: def _build ( self , inputs ) : self . _layer = snt . Linear ( self . _output_size , self . _add_bias , self . _initializers , self . _partitioners , self . _regularizers , name = 'LinearWx' ) output = self . _layer ( inputs ) if self . _add_bias : tf . add_to_collection ( GraphKeys . BIASES , self . _layer . b ) tf . add_to_collection ( GraphKeys . WEIGHTS , self . _layer . w ) tf . add_to_collection ( GraphKeys . PRE_ACTIVATIONS , output ) if self . _activation_fn is None or self . _activation_fn == tf . identity : return output output = self . _activation_fn ( output ) tf . add_to_collection ( GraphKeys . ACTIVATIONS , output ) return output
short_docstring: Perform dense/fully connected layer with a activation function
short_docstring_tokens: Perform dense / fully connected layer with a activation function
comment: """
          Perform dense/fully connected layer with a activation function
          """$SEP$# Add GraphKeys to collection$SEP$# Add to GraphKeys for activation output