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.
Issue
I want to load a subgraph, roughly defined as:
in another graph, also roughly defined as:
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:
Issue
What is the syntax to define an optimization rule for the prerequisite component parameter?
I have tried:
prerequisites.formatprerequisites/formatprerequisites: [ format ]prerequisitesformatand none of them provided the desired result.