ml_switcheroo.compiler.frontends.python ======================================= .. py:module:: ml_switcheroo.compiler.frontends.python .. autoapi-nested-parse:: Python Frontend. Wraps the LibCST parser and GraphExtractor to provide a standard interface for ingesting Python code into the Logical Graph IR. Classes ------- .. autoapisummary:: ml_switcheroo.compiler.frontends.python.PythonFrontend Module Contents --------------- .. py:class:: PythonFrontend(code: str) Ingests Python source code into a LogicalGraph. .. py:attribute:: code .. py:method:: parse_to_graph() -> ml_switcheroo.compiler.ir.LogicalGraph Parses the code and extracts the computation graph.