'get_tensor.
Get the metric tensor.
Returns:
The metric `Tensor`.'

def get_tensor(self):

    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
