I was told that we can use regular Python type hin...
# ask-the-community
t
I was told that we can use regular Python type hinting for files. But in the example: https://docs.flyte.org/projects/cookbook/en/latest/auto/case_studies/ml_training/mnist_classifier/pytorch_single_node_and_gpu.html I see
Copy code
from flytekit.types.file import PythonPickledFile
and in the example: https://docs.flyte.org/projects/cookbook/en/latest/auto/case_studies/ml_training/house_price_prediction/house_price_predictor.html I see
Copy code
from flytekit.types.file import JoblibSerializedFile
These are used to output the model state. Couldn’t we use regular Python type hints for these? May I know why
PythonPickedFile
and
JoblibSerializedFile
were used in the examples?
k
This is just metadata, this adds a format field to the information so that it’s easier for The user to see it in the ui
t
Oh I see! The user can change it in the UI as per the requirement. Correct?
s
@Taeef Najib, sorry change what?
t
@Samhita Alla I got it resolved. Thanks
104 Views