nv_dfm_core.api.Operation#
- class nv_dfm_core.api.Operation(*, site=BestOf(tag='@dfm-best-of', sites=None), provider=None, dfm_node_id=<factory>, dfm_after=None, dfm_class_name)[source]#
An Operation is semantically similar to a remote method call on the containing provider object. E.g. a call to an operation named LoadModel defined on a provider my_provider is semantically similar to a call my_provider.LoadModel().
An Operation without a provider is essentially a function call (that is, there is exactly one function with this name with no provider). In the code we don’t distinguish between a function call and an operation call with no provider, however, to allow the site admins to be flexible; e.g. if the site admin wants to host two different implementations for the same function F() they can put the different F()’s into different providers.
- Parameters:
- model_config: ConfigDict = {'extra': 'forbid', 'frozen': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].