Google I/O is a wrap! Catch up on TensorFlow sessions View sessions

tflite_support.metadata_writers.metadata_info.InputAudioTensorMd

A container for the input audio tensor metadata information.

Inherits From: TensorMd

name name of the tensor.
description description of what the tensor is.
sample_rate the sample rate in Hz when the audio was captured.
channels the channel count of the audio.

sample_rate the sample rate in Hz when the audio was captured.
channels the channel count of the audio.

Methods

create_metadata

View source

Creates the input audio metadata based on the information.

Returns
A Flatbuffers Python object of the input audio metadata.

Raises
ValueError if any value of sample_rate, channels is negative.