未验证 提交 ecfdfc9c 编写于 作者: C Chen Weihang 提交者: GitHub

fix guard place set error (#27573)

上级 b0ee1405
......@@ -363,7 +363,7 @@ def guard(place=None):
with framework.program_guard(train, startup):
with framework.unique_name.guard():
with framework._dygraph_guard(tracer):
with framework._dygraph_place_guard(place):
with framework._dygraph_place_guard(expected_place):
yield
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册