Skip to content

make visualizer working#16319

Closed
LeoZhao-Intel wants to merge 1 commit intoPaddlePaddle:developfrom
LeoZhao-Intel:visualizer_fix
Closed

make visualizer working#16319
LeoZhao-Intel wants to merge 1 commit intoPaddlePaddle:developfrom
LeoZhao-Intel:visualizer_fix

Conversation

@LeoZhao-Intel
Copy link
Contributor

test=develop

@luotao1
Copy link
Contributor

luotao1 commented Mar 20, 2019

@fc500110 Could you help see this PR, since #16177 remove the visualizer.

@luotao1 luotao1 requested a review from fc500110 March 20, 2019 07:11
Copy link
Contributor

@fc500110 fc500110 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visualizer is out of date, it's more convenient to draw with Python API.

from paddle import fluid
exe = fluid.Executor(fluid.CPUPlace())
with fluid.scope_guard(fluid.core.Scope()):
    [program, feed, fetch] = fluid.io.load_inference_model('model', exe)
    graph = fluid.framework.IrGraph(fluid.core.Graph(program.desc), for_test=False)
    graph.draw('./path_to_save', 'graph')

@luotao1 luotao1 added the Intel label Mar 21, 2019
@luotao1
Copy link
Contributor

luotao1 commented Mar 21, 2019

Thanks for your contribution. Close it due to #16177.

@luotao1 luotao1 closed this Mar 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants