提交 4e8c0f4c 编写于 作者: B baiyfbupt

adjust distillation demo

上级 884d82a6
......@@ -140,8 +140,6 @@ def compress(args):
# define teacher program
teacher_program = fluid.Program()
t_startup = fluid.Program()
teacher_scope = fluid.Scope()
with fluid.scope_guard(teacher_scope):
with fluid.program_guard(teacher_program, t_startup):
with fluid.unique_name.guard():
image = fluid.layers.data(
......@@ -173,8 +171,7 @@ def compress(args):
teacher_program,
student_program,
data_name_map,
place,
teacher_scope=teacher_scope)
place)
#print("="*50+"teacher_vars"+"="*50)
#for v in teacher_program.list_vars():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册