docstr: Creates ir swap from proto and tests IR delta parallel method.
docstr_tok: ["Creates","ir","swap","from","proto","and","tests","IR","delta","parallel","method","."]
code: def test_ir_delta_parallel(self):
      """Creates ir swap from proto and tests IR delta parallel method."""
      market = market_data.MarketDataDict(self._market_data_dict)
      swaps = interest_rate_swap.InterestRateSwap.from_protos(
          [self._swap_1, self._swap_2, self._swap_1]
      )
      # Automatic differentiation test
      delta1 = swaps[0].ir_delta_parallel(market)
      expected1 = np.array(
          [7689639.46004707, 7662889.94933313, 7689639.46004707]
      )
      # Autograd test
      with self.subTest("DeltaBatchAutograd"):
          self.assertAllClose(delta1, expected1)
  
file_path: tf-quant-finance/tf_quant_finance/experimental/pricing_platform/framework/rate_instruments/interest_rate_swap/interest_rate_swap_test.py
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 4 for calling the InterestRateSwapTest obj's underlying member method code with example usage: obj.test_ir_delta_parallel() without return types