(feat, order=2)
return feat_with_delta_delta
params:
    feat: a tensor of shape [nframe, nfbank] or [nframe, nfbank, 1]
  return: [nframe, nfbank, 3]
params:
    feat: a tensor of shape [nframe, nfbank] or [nframe, nfbank, 1]
  return: [nframe, nfbank, 3]
params : feat : a tensor of shape [ nframe nfbank ] or [ nframe nfbank 1 ] return : [ nframe nfbank 3 ]
def delta_delta(feat, order=2):
  '''
  params:
    feat: a tensor of shape [nframe, nfbank] or [nframe, nfbank, 1]
  return: [nframe, nfbank, 3]
  '''
  feat = tf.cond(
      tf.equal(tf.rank(feat), 3),
      true_fn=lambda: feat[:, :, 0],
      false_fn=lambda: feat)

  shape = tf.shape(feat)
  # [nframe nfbank*3]
  nframe = shape[0]
  nfbank = shape[1]
  delta = py_x_ops.delta_delta(feat, order=order)
  feat_with_delta_delta = tf.reshape(delta, (nframe, nfbank, (order + 1)))
  return feat_with_delta_delta
def delta_delta ( feat , order = 2 ) : feat = tf . cond ( tf . equal ( tf . rank ( feat ) , 3 ) , true_fn = lambda : feat [ : , : , 0 ] , false_fn = lambda : feat ) shape = tf . shape ( feat ) # [nframe nfbank*3] nframe = shape [ 0 ] nfbank = shape [ 1 ] delta = py_x_ops . delta_delta ( feat , order = order ) feat_with_delta_delta = tf . reshape ( delta , ( nframe , nfbank , ( order + 1 ) ) ) return feat_with_delta_delta