Return tuple #11022
Return tuple
#11022
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
I am working on pipeline now and wondering how can I return tuples of strings? Namedtuple didn't work for me.
Any ideas?
UPDATED: If you need to return tuple in Kubeflow pipeline :
from typing import NamedTuple
@dsl.component()
def your_function_name():
...code...
Output = NamedTuple('Output', a=str, b=str)
return Output(first_value, second_value)
For getting them:
your_function_name.outputs['a']
your_function_name.outputs['a']
Beta Was this translation helpful? Give feedback.
All reactions