class_docstr: Pytorch has a number of built-in activation functions.  We group those here under a common
  type, just to make it easier to configure and instantiate them ``from_params`` using
  ``Registrable``.
  
  Note that we're only including element-wise activation functions in this list.  You really need
  to think about masking when you do a softmax or other similar activation function, so it
  requires a different API.
class_docstr_tok: ["Pytorch","has","a","number","of","built-in","activation","functions",".","We","group","those","here","under","a","common","type",",","just","to","make","it","easier","to","configure","and","instantiate","them","``","from_params","``","using","``","Registrable","``",".","Note","that","we","'re","only","including","element-wise","activation","functions","in","this","list",".","You","really","need","to","think","about","masking","when","you","do","a","softmax","or","other","similar","activation","function",",","so","it","requires","a","different","API","."]
docstr: This function is here just to make mypy happy.  We expect activation functions to follow
  this API; the builtin pytorch activation functions follow this just fine, even though they
  don't subclass ``Activation``.  We're just making it explicit here, so mypy knows that
  activations are callable like this.
docstr_tok: ["This","function","is","here","just","to","make","mypy","happy",".","We","expect","activation","functions","to","follow","this","API",";","the","builtin","pytorch","activation","functions","follow","this","just","fine",",","even","though","they","do","n't","subclass","``","Activation","``",".","We","'re","just","making","it","explicit","here",",","so","mypy","knows","that","activations","are","callable","like","this","."]
code: def __call__(self, tensor):
      """
      This function is here just to make mypy happy.  We expect activation functions to follow
      this API; the builtin pytorch activation functions follow this just fine, even though they
      don't subclass ``Activation``.  We're just making it explicit here, so mypy knows that
      activations are callable like this.
      """
      raise NotImplementedError
  
imports: from __future__ import absolute_import
  import torch
  from allennlp.common import Registrable
label_desc: Use image node_id 1 for calling the Activation obj's underlying member method code with example usage: obj.__call__(tensor) without return types