Skip to content

Conversation

@yongtang
Copy link
Member

This PR is part of the effort to rework on Dataset with large files reading into Tensors first to speed up performance. See #382 and #366 for related discussions.

Summary:

  1. read_avro is able to read a avro file within the range of [offset, offset+length] (Splittable)
  2. we use primitive read_avro C++ ops to read in big chunks and then wire up with tf.data.Dataset
  3. read_avro could be used in other places.
  4. AvroDataset automatically find out the dtype in eager mode, in graph mode, user has
    to specify the dtype in kwargs.

Signed-off-by: Yong Tang [email protected]

…port

This PR is part of the effort to rework on Dataset with large files reading into Tensors first to speed up performance. See 382 and 366 for related discussions.

Summary:

1) read_avro is able to read a avro file within the range of [offset, offset+length] (Splittable)
2) we use primitive read_avro C++ ops to read in big chunks and then wire up with tf.data.Dataset
3) read_avro could be used in other places.
4) AvroDataset automatically find out the dtype in eager mode, in graph mode, user has
   to specify the dtype in kwargs.

Signed-off-by: Yong Tang <[email protected]>
@yongtang
Copy link
Member Author

yongtang commented Aug 4, 2019

Also plan to merge this PR, as it exposes a primitive op (read_avro) which could be more useful than dataset (unless directly passed to tf.keras).

@yongtang yongtang merged commit 77ee1da into tensorflow:master Aug 4, 2019
@yongtang yongtang deleted the avro branch August 4, 2019 20:11
i-ony pushed a commit to i-ony/io that referenced this pull request Feb 8, 2021
…port (tensorflow#399)

This PR is part of the effort to rework on Dataset with large files reading into Tensors first to speed up performance. See 382 and 366 for related discussions.

Summary:

1) read_avro is able to read a avro file within the range of [offset, offset+length] (Splittable)
2) we use primitive read_avro C++ ops to read in big chunks and then wire up with tf.data.Dataset
3) read_avro could be used in other places.
4) AvroDataset automatically find out the dtype in eager mode, in graph mode, user has
   to specify the dtype in kwargs.

Signed-off-by: Yong Tang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant