fixed_length_record_dataset: A dataset of fixed-length records from one or more binary...

Description Usage Arguments Value

View source: R/fixed_length_dataset.R

Description

A dataset of fixed-length records from one or more binary files.

Usage

1
2
3
4
5
6
7
fixed_length_record_dataset(
  filenames,
  record_bytes,
  header_bytes = NULL,
  footer_bytes = NULL,
  buffer_size = NULL
)

Arguments

filenames

A string tensor containing one or more filenames.

record_bytes

An integer representing the number of bytes in each record.

header_bytes

(Optional) An integer scalar representing the number of bytes to skip at the start of a file.

footer_bytes

(Optional) A integer scalar representing the number of bytes to ignore at the end of a file.

buffer_size

(Optional) A integer scalar representing the number of bytes to buffer when reading.

Value

A dataset


tfdatasets documentation built on Nov. 10, 2021, 1:07 a.m.