提交 5857c9ae 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!613 fix code in debugging_in_pynative_mode.ipynb for r0.6

Merge pull request !613 from lvmingfu/r0.6
...@@ -362,6 +362,7 @@ ...@@ -362,6 +362,7 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"from mindspore import context, Tensor, ParameterTuple\n", "from mindspore import context, Tensor, ParameterTuple\n",
"context.set_context(mode=context.PYNATIVE_MODE, device_target = \"GPU\")\n",
"\n", "\n",
"class GradWrap(nn.Cell):\n", "class GradWrap(nn.Cell):\n",
" \"\"\" GradWrap definition \"\"\"\n", " \"\"\" GradWrap definition \"\"\"\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册