TheNeuralBit opened a new pull request, #21844:
URL: https://github.com/apache/beam/pull/21844

   Fixes #21652
   
   Some Batched DoFns (e.g. RunInference) will need to declare their 
input/output batch types dynamically based on some configuration. Technically a 
DoFn implementation should already be able to do this, but it's untested and 
undocumented. This PR simply documents the functions that need to be overridden 
(`get_input_batch_type`, `get_output_batch_type`), and adds tests verifying 
it's possible. 
   
   We also add new `_normalized` versions of these functions which are 
responsible for normalizing the typehints to Beam typehints. This allows users 
to return native typehints in their implementations if they prefer.
   
   GitHub Actions Tests Status (on master branch)
   
------------------------------------------------------------------------------------------------
   [![Build python source distribution and 
wheels](https://github.com/apache/beam/workflows/Build%20python%20source%20distribution%20and%20wheels/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Build+python+source+distribution+and+wheels%22+branch%3Amaster+event%3Aschedule)
   [![Python 
tests](https://github.com/apache/beam/workflows/Python%20tests/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Python+Tests%22+branch%3Amaster+event%3Aschedule)
   [![Java 
tests](https://github.com/apache/beam/workflows/Java%20Tests/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Java+Tests%22+branch%3Amaster+event%3Aschedule)
   
   See [CI.md](https://github.com/apache/beam/blob/master/CI.md) for more 
information about GitHub Actions CI.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to