class_docstr: Base Metric Class.
  
  Metric class is meant to be used by TFLearn models class. It can be
  first initialized with desired parameters, and a model class will
  build it later using the given network output and targets.
  
  Attributes:
      tensor: `Tensor`. The metric tensor.
class_docstr_tok: ["Base","Metric","Class",".","Metric","class","is","meant","to","be","used","by","TFLearn","models","class",".","It","can","be","first","initialized","with","desired","parameters",",","and","a","model","class","will","build","it","later","using","the","given","network","output","and","targets",".","Attributes",":","tensor",":","`","Tensor","`",".","The","metric","tensor","."]
docstr: get_tensor.
  
  Get the metric tensor.
  
  Returns:
      The metric `Tensor`.
docstr_tok: ["get_tensor",".","Get","the","metric","tensor",".","Returns",":","The","metric","`","Tensor","`","."]
code: def get_tensor(self):
      """get_tensor.
  
      Get the metric tensor.
  
      Returns:
          The metric `Tensor`.
  
      """
      if not self.built:
          raise Exception(
              "Metric class Tensor hasn't be built. 'build' "
              "method must be invoked before using 'get_tensor'."
          )
      return self.tensor
  
imports: from __future__ import division, print_function, absolute_import
  from .utils import get_from_module
  import tensorflow.compat.v1
label_desc: Use image node_id 3 for calling the Metric obj's underlying member method code with example usage: obj.get_tensor() and returns: self