class_docstr: Delta_delta extraction test.
code: def test_delta_delta(self):
      self.feat_dim = 80
      self.data = np.arange(self.feat_dim, dtype=np.float32).reshape(
          (8, 10)
      )
  
      # compute from kaldi `add-detlas` tools
      self.output_true = np.array(
          [
              0.0000000e00,
              1.0000000e00,
              2.0000000e00,
              3.0000000e00,
              4.0000000e00,
              5.0000000e00,
              6.0000000e00,
              7.0000000e00,
              8.0000000e00,
              9.0000000e00,
              1.0000000e01,
              1.1000000e01,
              1.2000000e01,
              1.3000000e01,
              1.4000000e01,
              1.5000000e01,
              1.6000000e01,
              1.7000000e01,
              1.8000000e01,
              1.9000000e01,
              2.0000000e01,
              2.1000000e01,
              2.2000000e01,
              2.3000000e01,
              2.4000000e01,
              2.5000000e01,
              2.6000000e01,
              2.7000000e01,
              2.8000000e01,
              2.9000000e01,
              3.0000000e01,
              3.1000000e01,
              3.2000000e01,
              3.3000000e01,
              3.4000000e01,
              3.5000000e01,
              3.6000000e01,
              3.7000000e01,
              3.8000000e01,
              3.9000000e01,
              4.0000000e01,
              4.1000000e01,
              4.2000000e01,
              4.3000000e01,
              4.4000000e01,
              4.5000000e01,
              4.6000000e01,
              4.7000000e01,
              4.8000000e01,
              4.9000000e01,
              5.0000000e01,
              5.1000000e01,
              5.2000000e01,
              5.3000000e01,
              5.4000000e01,
              5.5000000e01,
              5.6000000e01,
              5.7000000e01,
              5.8000000e01,
              5.9000000e01,
              6.0000000e01,
              6.1000000e01,
              6.2000000e01,
              6.3000000e01,
              6.4000000e01,
              6.5000000e01,
              6.6000000e01,
              6.7000000e01,
              6.8000000e01,
              6.9000000e01,
              7.0000000e01,
              7.1000000e01,
              7.2000000e01,
              7.3000000e01,
              7.4000000e01,
              7.5000000e01,
              7.6000000e01,
              7.7000000e01,
              7.8000000e01,
              7.9000000e01,
              0.0000000e00,
              -1.4901161e-08,
              -2.9802322e-08,
              0.0000000e00,
              -5.9604645e-08,
              0.0000000e00,
              0.0000000e00,
              1.1920929e-07,
              -1.1920929e-07,
              1.1920929e-07,
              0.0000000e00,
              -2.3841858e-07,
              0.0000000e00,
              2.3841858e-07,
              2.3841858e-07,
              0.0000000e00,
              -2.3841858e-07,
              -2.3841858e-07,
              2.3841858e-07,
              2.3841858e-07,
              0.0000000e00,
              4.7683716e-07,
              -4.7683716e-07,
              4.7683716e-07,
              0.0000000e00,
              0.0000000e00,
              4.7683716e-07,
              -4.7683716e-07,
              4.7683716e-07,
              -4.7683716e-07,
              0.0000000e00,
              4.7683716e-07,
              -4.7683716e-07,
              4.7683716e-07,
              -4.7683716e-07,
              0.0000000e00,
              4.7683716e-07,
              -4.7683716e-07,
              4.7683716e-07,
              -4.7683716e-07,
              0.0000000e00,
              9.5367432e-07,
              9.5367432e-07,
              0.0000000e00,
              -9.5367432e-07,
              0.0000000e00,
              9.5367432e-07,
              9.5367432e-07,
              0.0000000e00,
              -9.5367432e-07,
              0.0000000e00,
              9.5367432e-07,
              9.5367432e-07,
              0.0000000e00,
              -9.5367432e-07,
              0.0000000e00,
              9.5367432e-07,
              9.5367432e-07,
              -9.5367432e-07,
              -9.5367432e-07,
              0.0000000e00,
              9.5367432e-07,
              9.5367432e-07,
              -9.5367432e-07,
              -9.5367432e-07,
              0.0000000e00,
              9.5367432e-07,
              9.5367432e-07,
              -9.5367432e-07,
              -9.5367432e-07,
              0.0000000e00,
              9.5367432e-07,
              9.5367432e-07,
              -9.5367432e-07,
              -9.5367432e-07,
              0.0000000e00,
              9.5367432e-07,
              9.5367432e-07,
              -9.5367432e-07,
              -9.5367432e-07,
              0.0000000e00,
              0.0000000e00,
              0.0000000e00,
              0.0000000e00,
              0.0000000e00,
              5.9604645e-08,
              0.0000000e00,
              5.9604645e-08,
              0.0000000e00,
              0.0000000e00,
              1.1920929e-07,
              5.9604645e-08,
              0.0000000e00,
              0.0000000e00,
              1.1920929e-07,
              0.0000000e00,
              0.0000000e00,
              2.3841858e-07,
              0.0000000e00,
              2.3841858e-07,
              2.3841858e-07,
              0.0000000e00,
              1.1920929e-07,
              2.3841858e-07,
              0.0000000e00,
              2.3841858e-07,
              0.0000000e00,
              0.0000000e00,
              2.3841858e-07,
              0.0000000e00,
              0.0000000e00,
              0.0000000e00,
              0.0000000e00,
              0.0000000e00,
              4.7683716e-07,
              0.0000000e00,
              0.0000000e00,
              4.7683716e-07,
              4.7683716e-07,
              2.3841858e-07,
              4.7683716e-07,
              4.7683716e-07,
              0.0000000e00,
              0.0000000e00,
              2.3841858e-07,
              0.0000000e00,
              4.7683716e-07,
              2.3841858e-07,
              0.0000000e00,
              4.7683716e-07,
              4.7683716e-07,
              9.5367432e-07,
              0.0000000e00,
              4.7683716e-07,
              0.0000000e00,
              4.7683716e-07,
              4.7683716e-07,
              4.7683716e-07,
              0.0000000e00,
              4.7683716e-07,
              0.0000000e00,
              4.7683716e-07,
              0.0000000e00,
              4.7683716e-07,
              0.0000000e00,
              4.7683716e-07,
              0.0000000e00,
              4.7683716e-07,
              9.5367432e-07,
              4.7683716e-07,
              0.0000000e00,
              4.7683716e-07,
              0.0000000e00,
              4.7683716e-07,
              9.5367432e-07,
              4.7683716e-07,
              9.5367432e-07,
              0.0000000e00,
              4.7683716e-07,
              4.7683716e-07,
          ],
          dtype=np.float32,
      )
  
      with self.cached_session(use_gpu=False, force_gpu=False):
          self.order = 2
          self.window = 2
          feat = tf.constant(self.data, dtype=tf.float32)
          delta_delta = DeltaDelta.params().instantiate()
          delta_delta_test = delta_delta(feat, self.order, self.window)
  
          self.assertEqual(
              delta_delta_test.shape, (8, 10, self.order + 1)
          )
  
file_path: delta/delta/data/frontend/delta_delta_test.py
imports: import delta.compat
  from delta.data.frontend.delta_delta import DeltaDelta
  import numpy
  import tempfile
  from kaldiio import WriteHelper
label_desc: Use image node_id 1 for calling the Delta_delta_Test obj's underlying member method code with example usage: obj.test_delta_delta() without return types