@Operator(group="summary") public final class AudioSummary extends PrimitiveOp implements Operand<String>
The summary has up to `max_outputs` summary values containing audio. The audio is built from `tensor` which must be 3-D with shape `[batch_size, frames, channels]` or 2-D with shape `[batch_size, frames]`. The values are assumed to be in the range of `[-1.0, 1.0]` with a sample rate of `sample_rate`.
The `tag` argument is a scalar `Tensor` of type `string`. It is used to build the `tag` of the summary values:
Modifier and Type | Class and Description |
---|---|
static class |
AudioSummary.Options
Optional attributes for
AudioSummary |
operation
Modifier and Type | Method and Description |
---|---|
Output<String> |
asOutput()
Returns the symbolic handle of a tensor.
|
static AudioSummary |
create(Scope scope,
Operand<String> tag,
Operand<Float> tensor,
Operand<Float> sampleRate,
AudioSummary.Options... options)
Factory method to create a class wrapping a new AudioSummary operation.
|
static AudioSummary.Options |
maxOutputs(Long maxOutputs) |
Output<String> |
summary()
Scalar.
|
equals, hashCode, op, toString
public static AudioSummary create(Scope scope, Operand<String> tag, Operand<Float> tensor, Operand<Float> sampleRate, AudioSummary.Options... options)
scope
- current scopetag
- Scalar. Used to build the `tag` attribute of the summary values.tensor
- 2-D of shape `[batch_size, frames]`.sampleRate
- The sample rate of the signal in hertz.options
- carries optional attributes valuespublic static AudioSummary.Options maxOutputs(Long maxOutputs)
maxOutputs
- Max number of batch elements to generate audio for.public Output<String> asOutput()
Operand
Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
asOutput
in interface Operand<String>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.