@Operator 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 to wrap a new AudioSummary operation to the graph.
|
static AudioSummary.Options |
maxOutputs(Long maxOutputs) |
Output<String> |
summary()
Scalar.
|
equals, hashCode, toStringpublic static AudioSummary create(Scope scope, Operand<String> tag, Operand<Float> tensor, Operand<Float> sampleRate, AudioSummary.Options... options)
scope - current graph 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()
OperandInputs 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 © 2015–2019. All rights reserved.