class_docstr: Represents a tensor of time periods.
class_docstr_tok: ["Represents","a","tensor","of","time","periods","."]
docstr: Returns the quantities tensor of this PeriodTensor.
docstr_tok: ["Returns","the","quantities","tensor","of","this","PeriodTensor","."]
code: def quantity(self):
      """Returns the quantities tensor of this PeriodTensor."""
      return self._quantity
  
imports: import tensorflow.compat.v2
  from tf_quant_finance.datetime import constants
  from tf_quant_finance.datetime import tensor_wrapper
label_desc: Use image node_id 3 for calling the PeriodTensor obj's underlying member method code with example usage: obj.quantity() and returns: self