Home | History | Annotate | Download | only in base_api
      1 op {
      2   graph_op_name: "AudioSummaryV2"
      3   endpoint {
      4     name: "AudioSummary"
      5   }
      6   in_arg {
      7     name: "tag"
      8     description: <<END
      9 Scalar. Used to build the `tag` attribute of the summary values.
     10 END
     11   }
     12   in_arg {
     13     name: "tensor"
     14     description: <<END
     15 2-D of shape `[batch_size, frames]`.
     16 END
     17   }
     18   in_arg {
     19     name: "sample_rate"
     20     description: <<END
     21 The sample rate of the signal in hertz.
     22 END
     23   }
     24   out_arg {
     25     name: "summary"
     26     description: <<END
     27 Scalar. Serialized `Summary` protocol buffer.
     28 END
     29   }
     30   attr {
     31     name: "max_outputs"
     32     description: <<END
     33 Max number of batch elements to generate audio for.
     34 END
     35   }
     36   summary: "Outputs a `Summary` protocol buffer with audio."
     37   description: <<END
     38 The summary has up to `max_outputs` summary values containing audio. The
     39 audio is built from `tensor` which must be 3-D with shape `[batch_size,
     40 frames, channels]` or 2-D with shape `[batch_size, frames]`. The values are
     41 assumed to be in the range of `[-1.0, 1.0]` with a sample rate of `sample_rate`.
     42 
     43 The `tag` argument is a scalar `Tensor` of type `string`.  It is used to
     44 build the `tag` of the summary values:
     45 
     46 *  If `max_outputs` is 1, the summary value tag is '*tag*/audio'.
     47 *  If `max_outputs` is greater than 1, the summary value tags are
     48    generated sequentially as '*tag*/audio/0', '*tag*/audio/1', etc.
     49 END
     50 }
     51