class_docstr: Represents a batch of cashflows indexed to a floating rate.
class_docstr_tok: ["Represents","a","batch","of","cashflows","indexed","to","a","floating","rate","."]
docstr: Returns the present value of the stream on the valuation date.
  
  Args:
    market: An instance of `ProcessedMarketData`.
    name: Python str. The name to give to the ops created by this function.
      Default value: `None` which maps to 'price'.
  
  Returns:
    A `Tensor` of shape `batch_shape`  containing the modeled price of each
    stream based on the input market data.
code: def price(
      self, market: pmd.ProcessedMarketData, name: Optional[str] = None
  ) -> types.FloatTensor:
      """Returns the present value of the stream on the valuation date.
  
      Args:
        market: An instance of `ProcessedMarketData`.
        name: Python str. The name to give to the ops created by this function.
          Default value: `None` which maps to 'price'.
  
      Returns:
        A `Tensor` of shape `batch_shape`  containing the modeled price of each
        stream based on the input market data.
      """
  
      name = name or (self._name + "_price")
      with tf.name_scope(name):
          discount_curve = get_discount_curve(
              self._discount_curve_type, market, self._mask
          )
          discount_factors = discount_curve.discount_factor(
              self._coupon_end_dates
          )
          _, cashflows = self.cashflows(
              market, past_fixing=self._past_fixing
          )
          # Cashflows present values
          cashflow_pvs = cashflows * discount_factors
          return tf.math.reduce_sum(cashflow_pvs, axis=1)
  
imports: from typing import Optional, Tuple, Callable, Any, List, Union
  import numpy
  import tensorflow.compat.v2
  from tf_quant_finance import datetime
  from tf_quant_finance.experimental.pricing_platform.framework.core import curve_types
  from tf_quant_finance.experimental.pricing_platform.framework.core import processed_market_data
  from tf_quant_finance.experimental.pricing_platform.framework.core import types
  from tf_quant_finance.experimental.pricing_platform.framework.market_data import rate_curve
  from tf_quant_finance.experimental.pricing_platform.framework.market_data import utils
  from tf_quant_finance.experimental.pricing_platform.framework.rate_instruments import coupon_specs
  from tf_quant_finance.experimental.pricing_platform.instrument_protos import period_pb2
  from tf_quant_finance.math import pad
label_desc: Use image node_id 13 for calling the FloatingCashflowStream obj's underlying member method code with example usage: obj.price(market, name) and returns: tf