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","."]
code: def __init__(self, name=None):
      self.name = name
      self.tensor = None
      self.built = False
  
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 1 to create a new Metric object from inherited base classes: object with example: obj = Metric(name)