Skip to content

Commit

Permalink
Add typehint, use correct name
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrudPrimrose committed Oct 25, 2024
1 parent 9b2eadc commit 0706df0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tutorials/codegen.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -798,7 +798,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": ".def",
"language": "python",
"name": "python3"
},
Expand All @@ -812,7 +812,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.1"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 0706df0

Please sign in to comment.