[][src]Crate tfrecord

The crate provides the functionality to serialize and deserialize TFRecord data format from TensorFlow.

The crate provides several cargo features that you can conditionally compile modules.

Optional features:

  • full: Enable all features.
  • async_: Enable async/await feature.
  • dataset: Enable the dataset API.
  • summary: Enable the summary and event API, which is mainly targeted for TensorBoard.

Third-party supports:

  • serde: Enable interoperability with serde to serialize and deserialize example types.
  • tch: Enable tch types support.
  • image: Enable image types support.
  • ndarray: Enable ndarray types support.

Re-exports

pub use error::Error;
pub use markers::GenericRecord;
pub use protos::Event;
pub use protos::Example as RawExample;
pub use protos::Summary;
pub use reader::BytesReader;
pub use reader::ExampleReader;
pub use reader::RawExampleReader;
pub use record::Example;
pub use record::Feature;
pub use writer::BytesWriter;
pub use writer::ExampleWriter;
pub use writer::RawExampleWriter;
pub use writer::RecordWriter;
pub use writer::RecordWriterInit;
pub use dataset::Dataset;
pub use dataset::DatasetInit;

Modules

dataset

The dataset API that accesses multiple TFRecord files.

error

Error types and error handling utilities.

io

Low level synchronous and asynchronous I/O functions.

markers

Marker traits and impls.

protos

ProtocolBuffer types compiled from TensorFlow.

reader

Reading TFRecord data format.

record

High level example and feature types.

summary

Summary and event types and writers for TensorBoard.

writer

Writing TFRecord data format.

Structs

EventInit

A Event initializer.

EventWriter

The event writer type.

EventWriterInit

The event writer initializer.

Histogram

Concurrent histogram data structure.

RecordReader

The generic reader type.

RecordReaderInit

The reader initializer.

RecordStreamInit

The stream initializer.

SummaryInit

A Summary initializer.