What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind bug

What does this PR do / why do we need it:
move the opt process to build graph

Which issue(s) this PR fixes:

Fixes #
https://gitee.com/mindspore/dashboard?issue_id=I1FH8E

Special notes for your reviewers: