Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How is batch_size auto tuned by beam in BeamSource #61

Open
zexuan-zhou opened this issue Dec 6, 2022 · 0 comments
Open

Comments

@zexuan-zhou
Copy link

Hi,

I'm reading https://www.tensorflow.org/tfx/tfx_bsl/api_docs/python/tfx_bsl/public/tfxio/TFXIO and I saw for BeamSource

@abc.abstractmethod
BeamSource(
    batch_size: Optional[int] = None
) -> beam.PTransform

It says

batch_size if not None, the pa.RecordBatch produced will be of the specified size. Otherwise it's automatically tuned by Beam.

I wonder how beam auto tunes this variable. Could anyone provide any insight? Thanks a lot

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

No branches or pull requests

1 participant