-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Lists are handled incorrectly by python components #1901
Comments
Thanks for the issue. Issues from users help us prioritize the features. KF Pipelines orchestrates containerized command-line programs. At this moment only |
Hmm. The generic lists probably won't be supported in the first release. I'll think of how to support them better. |
Thanks for the clarification @Ark-kun |
There is another issue in your code that would remain unfixed for some time:
might work, but it's not supported. And in this case (with the feature support I'll add soon) you'll get a list of strings, not numbers. |
HI, @Ark-kun have you added support for |
Works Kubeflow 1.2. @saltazaur, at first I tried |
for arguments parsing in Kubeflow I recommend json.loads |
* Add preliminary ServingRuntime support * Add test and some refactoring * Added ReadinessProbe to ServingRuntime Container spec * More refactoring * Add more tests * address comments * Add check for MMS compatible runtime * Also add a few more tests * Remove runtimes from main installation * Update error messages * Fix index out of bounds bug * Update some docstrings and add more unit tests
Take as example a function
max_value
that will take as an input lists of ints and will return the biggest value.If we pass as an input one hardcoded list, in execution time it would receive it as an string. Something like this:
"[1, 32]"
If we test it using some output from previous methods the input would be something like this:
"[{'PipelineParam': {'name': 'output', 'op_name': 'Return n', 'value': None, 'param_type': <kfp.dsl._metadata.TypeMeta object at 0x10dcb5748>, 'pattern': '1'}}, {'PipelineParam': {'name': 'output', 'op_name': 'Return n 2', 'value': None, 'param_type': <kfp.dsl._metadata.TypeMeta object at 0x10dcb5748>, 'pattern': '32'}}]"
The text was updated successfully, but these errors were encountered: