'Kubeflow - what is xxx_op and yyyOp?

In Kubeflow, what does op or Op indicate in xxx_op and ```yyyOp``?

def add(a: float, b: float) -> float:
    return a + b

add_op = comp.func_to_container_op(add)

@dsl.pipeline(
    name='Calculation pipeline',
    description='A toy pipeline that performs arithmetic calculations.'
)
def calc_pipeline(a='a',b='7'):
    add_task = add_op(a, 4) #Returns a dsl.ContainerOp class instance.

Does it mean it is an Operator as in Kubeflow Operator introduction?

Kubeflow Operator helps deploy, monitor and manage the lifecycle of Kubeflow. Built using the Operator Framework which offers an open source toolkit to build, test, package operators and manage the lifecycle of operators.

Or does it mean a Component instance as in Conceptual overview of components in Kubeflow Pipelines?

A pipeline component is self-contained set of code that performs one step in the ML workflow (pipeline), such as data preprocessing, data transformation, model training, and so on. A component is analogous to a function, in that it has a name, parameters, return values, and a body

My guess is that anything that is packaged into a container and executed in a Kubeflow pipeline workflow is marked as _op or Op. Is it correct?

The term Component and Operator are abused in Kubeflow so not sure what they are exactly.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source