nv_dfm_core.api.ApiVisitor#

class nv_dfm_core.api.ApiVisitor[source]#

Base visitor class for traversing DFM API models. All visit methods have empty implementations by default. Subclasses should override the methods they are interested in.

visit_for_each(for_each_stmt)[source]#

Visit a ForEach statement.

Parameters:

for_each_stmt (Any)

Return type:

None

visit_if(if_stmt)[source]#

Visit an If statement.

Parameters:

if_stmt (Any)

Return type:

None

visit_operation(operation)[source]#

Visit an Operation instance.

Parameters:

operation (Any)

Return type:

None

visit_pipeline(pipeline)[source]#

Visit a Pipeline instance.

Parameters:

pipeline (Any)

Return type:

None

visit_try_from_cache(try_from_cache_stmt)[source]#

Visit a ForEach statement.

Parameters:

try_from_cache_stmt (Any)

Return type:

None

visit_write_to_cache(write_to_cache_stmt)[source]#

Visit a ForEach statement.

Parameters:

write_to_cache_stmt (Any)

Return type:

None

visit_yield(yield_stmt)[source]#

Visit a Yield statement.

Parameters:

yield_stmt (Any)

Return type:

None