@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class AudioSummary extends Pointer
Summary
protocol buffer with audio.
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:
* If max_outputs
is 1, the summary value tag is '*tag* /audio'.
* If max_outputs
is greater than 1, the summary value tags are
generated sequentially as '*tag* /audio/0', '*tag* /audio/1', etc.
Arguments:
* scope: A Scope object
* tag: Scalar. Used to build the tag
attribute of the summary values.
* tensor: 2-D of shape [batch_size, frames]
.
* sample_rate: The sample rate of the signal in hertz.
Optional attributes (see Attrs
):
* max_outputs: Max number of batch elements to generate audio for.
Returns:
* Output
: Scalar. Serialized Summary
protocol buffer.Modifier and Type | Class and Description |
---|---|
static class |
AudioSummary.Attrs
Optional attribute setters for AudioSummary
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
AudioSummary(Pointer p)
Pointer cast constructor.
|
AudioSummary(Scope scope,
Input tag,
Input tensor,
Input sample_rate) |
AudioSummary(Scope scope,
Input tag,
Input tensor,
Input sample_rate,
AudioSummary.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
static AudioSummary.Attrs |
MaxOutputs(long x) |
Node |
node() |
Operation |
operation() |
AudioSummary |
operation(Operation setter) |
Output |
summary() |
AudioSummary |
summary(Output setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public AudioSummary(Pointer p)
Pointer(Pointer)
.public AudioSummary(@Const @ByRef Scope scope, @ByVal Input tag, @ByVal Input tensor, @ByVal Input sample_rate)
public Node node()
@ByVal public static AudioSummary.Attrs MaxOutputs(@Cast(value="tensorflow::int64") long x)
public AudioSummary operation(Operation setter)
public AudioSummary summary(Output setter)
Copyright © 2022. All rights reserved.