diff --git a/tutorials/codegen.ipynb b/tutorials/codegen.ipynb index d2e1994db0..2be83f35be 100644 --- a/tutorials/codegen.ipynb +++ b/tutorials/codegen.ipynb @@ -492,9 +492,9 @@ "\n", " # A scope dispatcher will trigger a method called generate_scope whenever\n", " # an SDFG has a scope with that schedule\n", - " def generate_scope(self, sdfg: dace.SDFG, dfg, scope: ScopeSubgraphView,\n", - " state_id: int, function_stream: CodeIOStream,\n", - " callsite_stream: CodeIOStream):\n", + " def generate_scope(self, sdfg: dace.SDFG, cfg: dace.ControlFlowRegion,\n", + " scope: ScopeSubgraphView, state_id: int,\n", + " function_stream: CodeIOStream, callsite_stream: CodeIOStream):\n", " # The parameters here are:\n", " # sdfg: The SDFG we are currently generating.\n", " # scope: The subgraph of the state containing only the scope (map contents)\n", @@ -536,7 +536,7 @@ " # Now that the loops have been defined, use the dispatcher to invoke any\n", " # code generator (including this one) that is registered to deal with\n", " # the internal nodes in the subgraph. We skip the MapEntry node.\n", - " self.dispatcher.dispatch_subgraph(sdfg, dfg, scope, state_id,\n", + " self.dispatcher.dispatch_subgraph(sdfg, cfg, scope, state_id,\n", " function_stream, callsite_stream,\n", " skip_entry_node=True)\n", "\n", @@ -798,7 +798,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": ".def", "language": "python", "name": "python3" }, @@ -812,7 +812,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.1" + "version": "3.12.3" } }, "nbformat": 4,