acoustic-carpenter-78188
04/27/2023, 7:08 PMFlyteFile or StructuredDataset because of a Papermill limitation that everything is json serializable.
My strategy is mostly copying record_outputs. These are the steps
1. Reserializing the inputs and save to local disk
2. Add a helper function read_input where users must give the input type (maybe there is a smart fix)
3. read_input loads the protos and uses the type to convert it to the correct format
Basically I am using flyte to serialize the inputs locally (see comments), then you just need to do this.
### Params
pi = (filled in by papermill)
### In a new cell
pi = read_input(pi, float)
Screenshot 2023-05-02 at 1 42 43 PM▾
acoustic-carpenter-78188
05/09/2023, 12:56 PMacoustic-carpenter-78188
05/11/2023, 3:50 AM