Skip to content

Add optimization rule for subgraph prerequisite entity #65

@AlessandroBiaggi

Description

@AlessandroBiaggi

Issue

I want to load a subgraph, roughly defined as:

%YAML1.2
---
prerequisites:
 - name: format
---
components:
 - name: client
   parameters:
      format: prerequisites/format

in another graph, also roughly defined as:

%YAML1.2
---
name: config
components:
 - name: format
   # type, parameters, etc.
---
components:
 - type: nvidia::gxf::Subgraph
   parameters:
      location: <path/to/subgraph.yaml>
      prerequisites:
         format: config/format

As you can see, I am trying to pass a component of another entity as a prerequisite of the subgraph.
For the gxf optimizer to work I have to define a proper optimization rule in the namespace injector rule file:

%YAML 1.2
---
operation: namespace_injector
body:
  components:
    - type: nvidia::gxf::Subgraph
      path_parameter_keys: [ <???> ]

Issue

What is the syntax to define an optimization rule for the prerequisite component parameter?
I have tried:

  • prerequisites.format
  • prerequisites/format
  • prerequisites: [ format ]
  • prerequisites
  • format

and none of them provided the desired result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions