class_docstr: Frame input audio signal. It is a wrapper of `tf.signal.frame`.
  
  Args:
      frame_length (int): length of a frame
      hop_length (int): hop length aka frame rate
      pad_end (bool): whether to pad at the end of the signal of there would be a otherwise-discarded partial frame
      pad_value (int or float): value to use in the padding
      data_format (str): `channels_first`, `channels_last`, or `default`
      **kwargs: optional keyword args for `tf.keras.layers.Layer()`
  
  Example:
      ::
  
          input_shape = (2048, 1)  # mono signal
          model = Sequential()
          model.add(kapre.Frame(frame_length=1024, hop_length=512, input_shape=input_shape))
          # now the shape is (batch, n_frame=3, frame_length=1024, ch=1)
docstr: Args:
      x (`Tensor`): batch audio signal in the specified 1D format in initiation.
  
  Returns:
      (`Tensor`): A framed tensor. The shape is (batch, time (frames), frame_length, channel) if `channels_last`,
      or (batch, channel, time (frames), frame_length) if `channels_first`.
docstr_tok: ["Args",":","x","(","`","Tensor","`",")",":","batch","audio","signal","in","the","specified","1D","format","in","initiation",".","Returns",":","(","`","Tensor","`",")",":","A","framed","tensor",".","The","shape","is","(","batch",",","time","(","frames",")",",","frame_length",",","channel",")","if","`","channels_last","`",",","or","(","batch",",","channel",",","time","(","frames",")",",","frame_length",")","if","`","channels_first","`","."]
code: def call(self, x):
      """
      Args:
          x (`Tensor`): batch audio signal in the specified 1D format in initiation.
  
      Returns:
          (`Tensor`): A framed tensor. The shape is (batch, time (frames), frame_length, channel) if `channels_last`,
          or (batch, channel, time (frames), frame_length) if `channels_first`.
      """
      return tf.signal.frame(
          x,
          frame_length=self.frame_length,
          frame_step=self.hop_length,
          pad_end=self.pad_end,
          pad_value=self.pad_value,
          axis=self.time_axis,
      )
  
imports: import tensorflow
  from tensorflow.keras.layers import Layer
  from tensorflow.keras import backend
  from .None import backend
  from .backend import _CH_FIRST_STR, _CH_LAST_STR, _CH_DEFAULT_STR
label_desc: Use image node_id 2 for calling the Frame obj's underlying member method code with example usage: obj.call(x) and returns: tf