I was told that we can use regular Python type hin...
# flyte-support
m
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?
f
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
👍 1
m
Oh I see! The user can change it in the UI as per the requirement. Correct?
t
@millions-librarian-94423, sorry change what?
m
@tall-lock-23197 I got it resolved. Thanks
155 Views