Skip to content

markdown

Markdown Utility API

This module provides utility functions for generating Markdown content.

Functions:

  • generate_mermaid

    Generate a Mermaid flowchart showing operator connectivity based on tensor lifetimes.

Copyright 2025 Ambiq. All Rights Reserved.

Functions

generate_mermaid

generate_mermaid(operators: list[AotOperator], direction: str = 'TB') -> str

Generate a Mermaid flowchart showing operator connectivity.

Parameters:

  • operators

    ([AotOperator]) –

    list of operators

  • direction

    (str, default: 'TB' ) –

    Mermaid graph direction (“TB”, “LR”, etc.)

Returns:

  • str ( str ) –

    Mermaid code as a string.