Made cost_analyzer_tool accept fetch nodes when running with metagraph option. Also made it read metagraph in either binary or text format.
Made cost_analyzer_tool accept fetch nodes when running with metagraph option. Also made it read metagraph in either binary or text format.

PiperOrigin-RevId: 186010810

asimshankar/tensorflow,yongtang/tensorflow,lukeiwanski/tensorflow,allenlavoie/tensorflow,Bismarrck/tensorflow,gunan/tensorflow,Intel-Corporation/tensorflow,chemelnucfin/tensorflow,aselle/tensorflow,zasdfgbnm/tensorflow,alsrgv/tensorflow,AnishShah/tensorflow,hfp/tensorflow-xsmm,jalexvig/tensorflow,annarev/tensorflow,paolodedios/tensorflow,eaplatanios/tensorflow,manipopopo/tensorflow,Intel-tensorflow/tensorflow,theflofly/tensorflow,frreiss/tensorflow-fred,gojira/tensorflow,brchiu/tensorflow,eaplatanios/tensorflow,aam-at/tensorflow,adit-chandra/tensorflow,ghchinoy/tensorflow,alshedivat/tensorflow,adit-chandra/tensorflow,renyi533/tensorflow,jendap/tensorflow,yanchen036/tensorflow,hfp/tensorflow-xsmm,asimshankar/tensorflow,petewarden/tensorflow,jart/tensorflow,ppwwyyxx/tensorflow,AnishShah/tensorflow,freedomtan/tensorflow,freedomtan/tensorflow,Intel-Corporation/tensorflow,kevin-coder/tensorflow-fork,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,meteorcloudy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xodus7/tensorflow,AnishShah/tensorflow,alsrgv/tensorflow,aselle/tensorflow,sarvex/tensorflow,dongjoon-hyun/tensorflow,ageron/tensorflow,dongjoon-hyun/tensorflow,caisq/tensorflow,manipopopo/tensorflow,freedomtan/tensorflow,Xeralux/tensorflow,snnn/tensorflow,adit-chandra/tensorflow,allenlavoie/tensorflow,ppwwyyxx/tensorflow,cxxgtxy/tensorflow,girving/tensorflow,seanli9jan/tensorflow,meteorcloudy/tensorflow,gojira/tensorflow,kevin-coder/tensorflow-fork,jendap/tensorflow,caisq/tensorflow,chemelnucfin/tensorflow,ZhangXinNan/tensorflow,manipopopo/tensorflow,petewarden/tensorflow,Intel-tensorflow/tensorflow,annarev/tensorflow,lukeiwanski/tensorflow,xzturn/tensorflow,alshedivat/tensorflow,theflofly/tensorflow,aselle/tensorflow,AnishShah/tensorflow,caisq/tensorflow,annarev/tensorflow,meteorcloudy/tensorflow,girving/tensorflow,frreiss/tensorflow-fred,jbedorf/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,yongtang/tensorflow,tensorflow/tensorflow,jbedorf/tensorflow,zasdfgbnm/tensorflow,asimshankar/tensorflow,cxxgtxy/tensorflow,jendap/tensorflow,gunan/tensorflow,DavidNorman/tensorflow,kobejean/tensorflow,adit-chandra/tensorflow,dendisuhubdy/tensorflow,benoitsteiner/tensorflow-xsmm,asimshankar/tensorflow,paolodedios/tensorflow,manipopopo/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jbedorf/tensorflow,theflofly/tensorflow,ppwwyyxx/tensorflow,hfp/tensorflow-xsmm,paolodedios/tensorflow,kobejean/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,theflofly/tensorflow,hfp/tensorflow-xsmm,jbedorf/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,AnishShah/tensorflow,jart/tensorflow,tensorflow/tensorflow,jendap/tensorflow,benoitsteiner/tensorflow-xsmm,petewarden/tensorflow,jhseu/tensorflow,ZhangXinNan/tensorflow,Intel-Corporation/tensorflow,alshedivat/tensorflow,manipopopo/tensorflow,manipopopo/tensorflow,drpngx/tensorflow,freedomtan/tensorflow,theflofly/tensorflow,DavidNorman/tensorflow,seanli9jan/tensorflow,adit-chandra/tensorflow,frreiss/tensorflow-fred,Xeralux/tensorflow,ageron/tensorflow,benoitsteiner/tensorflow-xsmm,jhseu/tensorflow,ppwwyyxx/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,aselle/tensorflow,ghchinoy/tensorflow,brchiu/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ZhangXinNan/tensorflow,asimshankar/tensorflow,seanli9jan/tensorflow,lukeiwanski/tensorflow,arborh/tensorflow,meteorcloudy/tensorflow,ZhangXinNan/tensorflow,manipopopo/tensorflow,ageron/tensorflow,asimshankar/tensorflow,annarev/tensorflow,AnishShah/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jbedorf/tensorflow,aldian/tensorflow,xodus7/tensorflow,benoitsteiner/tensorflow-xsmm,tensorflow/tensorflow-pywrap_tf_optimizer,allenlavoie/tensorflow,nburn42/tensorflow,sarvex/tensorflow,drpngx/tensorflow,meteorcloudy/tensorflow,ppwwyyxx/tensorflow,jendap/tensorflow,ghchinoy/tensorflow,meteorcloudy/tensorflow,jart/tensorflow,ageron/tensorflow,eaplatanios/tensorflow,Xeralux/tensorflow,caisq/tensorflow,tensorflow/tensorflow,dancingdan/tensorflow,renyi533/tensorflow,yanchen036/tensorflow,arborh/tensorflow,renyi533/tensorflow,dongjoon-hyun/tensorflow,Bismarrck/tensorflow,Xeralux/tensorflow,gojira/tensorflow,jhseu/tensorflow,dancingdan/tensorflow,paolodedios/tensorflow,petewarden/tensorflow,hfp/tensorflow-xsmm,alshedivat/tensorflow,davidzchen/tensorflow,adit-chandra/tensorflow,chemelnucfin/tensorflow,renyi533/tensorflow,aselle/tensorflow,aam-at/tensorflow,brchiu/tensorflow,drpngx/tensorflow,jbedorf/tensorflow,eaplatanios/tensorflow,ghchinoy/tensorflow,Intel-tensorflow/tensorflow,adit-chandra/tensorflow,jalexvig/tensorflow,meteorcloudy/tensorflow,jalexvig/tensorflow,caisq/tensorflow,jbedorf/tensorflow,xodus7/tensorflow,brchiu/tensorflow,hehongliang/tensorflow,petewarden/tensorflow,zasdfgbnm/tensorflow,eaplatanios/tensorflow,ageron/tensorflow,gunan/tensorflow,jart/tensorflow,davidzchen/tensorflow,nburn42/tensorflow,freedomtan/tensorflow,asimshankar/tensorflow,dendisuhubdy/tensorflow,Bismarrck/tensorflow,manipopopo/tensorflow,kobejean/tensorflow,jendap/tensorflow,nburn42/tensorflow,gautam1858/tensorflow,jhseu/tensorflow,yanchen036/tensorflow,drpngx/tensorflow,Xeralux/tensorflow,Intel-tensorflow/tensorflow,alsrgv/tensorflow,xodus7/tensorflow,dancingdan/tensorflow,ppwwyyxx/tensorflow,arborh/tensorflow,xzturn/tensorflow,ZhangXinNan/tensorflow,cxxgtxy/tensorflow,karllessard/tensorflow,nburn42/tensorflow,yongtang/tensorflow,jart/tensorflow,alsrgv/tensorflow,yongtang/tensorflow,aam-at/tensorflow,jhseu/tensorflow,ageron/tensorflow,karllessard/tensorflow,girving/tensorflow,benoitsteiner/tensorflow-xsmm,paolodedios/tensorflow,sarvex/tensorflow,aldian/tensorflow,annarev/tensorflow,DavidNorman/tensorflow,dongjoon-hyun/tensorflow,freedomtan/tensorflow,seanli9jan/tensorflow,dancingdan/tensorflow,eaplatanios/tensorflow,manipopopo/tensorflow,snnn/tensorflow,asimshankar/tensorflow,allenlavoie/tensorflow,gautam1858/tensorflow,jalexvig/tensorflow,renyi533/tensorflow,yanchen036/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-Corporation/tensorflow,meteorcloudy/tensorflow,Xeralux/tensorflow,petewarden/tensorflow,seanli9jan/tensorflow,Bismarrck/tensorflow,cxxgtxy/tensorflow,lukeiwanski/tensorflow,tensorflow/tensorflow,Xeralux/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,meteorcloudy/tensorflow,karllessard/tensorflow,snnn/tensorflow,alsrgv/tensorflow,Bismarrck/tensorflow,benoitsteiner/tensorflow-xsmm,alsrgv/tensorflow,gautam1858/tensorflow,ZhangXinNan/tensorflow,DavidNorman/tensorflow,adit-chandra/tensorflow,arborh/tensorflow,caisq/tensorflow,hehongliang/tensorflow,jart/tensorflow,nburn42/tensorflow,jhseu/tensorflow,Bismarrck/tensorflow,eaplatanios/tensorflow,caisq/tensorflow,aselle/tensorflow,aldian/tensorflow,tensorflow/tensorflow-pywrap_saved_model,allenlavoie/tensorflow,gautam1858/tensorflow,nburn42/tensorflow,apark263/tensorflow,gautam1858/tensorflow,dancingdan/tensorflow,ghchinoy/tensorflow,gunan/tensorflow,Bismarrck/tensorflow,DavidNorman/tensorflow,alsrgv/tensorflow,benoitsteiner/tensorflow-xsmm,apark263/tensorflow,chemelnucfin/tensorflow,girving/tensorflow,snnn/tensorflow,xzturn/tensorflow,jbedorf/tensorflow,frreiss/tensorflow-fred,benoitsteiner/tensorflow-xsmm,frreiss/tensorflow-fred,davidzchen/tensorflow,hehongliang/tensorflow,jart/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,manipopopo/tensorflow,girving/tensorflow,aselle/tensorflow,Intel-tensorflow/tensorflow,dancingdan/tensorflow,kobejean/tensorflow,petewarden/tensorflow,dendisuhubdy/tensorflow,sarvex/tensorflow,aldian/tensorflow,hfp/tensorflow-xsmm,ageron/tensorflow,ageron/tensorflow,gunan/tensorflow,gunan/tensorflow,xzturn/tensorflow,chemelnucfin/tensorflow,jendap/tensorflow,kobejean/tensorflow,Intel-Corporation/tensorflow,zasdfgbnm/tensorflow,jalexvig/tensorflow,kevin-coder/tensorflow-fork,ghchinoy/tensorflow,seanli9jan/tensorflow,aam-at/tensorflow,allenlavoie/tensorflow,asimshankar/tensorflow,kevin-coder/tensorflow-fork,tensorflow/tensorflow-pywrap_tf_optimizer,drpngx/tensorflow,jhseu/tensorflow,eaplatanios/tensorflow,AnishShah/tensorflow,freedomtan/tensorflow,aselle/tensorflow,drpngx/tensorflow,AnishShah/tensorflow,yongtang/tensorflow,DavidNorman/tensorflow,sarvex/tensorflow,dancingdan/tensorflow,zasdfgbnm/tensorflow,davidzchen/tensorflow,kobejean/tensorflow,arborh/tensorflow,petewarden/tensorflow,jhseu/tensorflow,snnn/tensorflow,cxxgtxy/tensorflow,dendisuhubdy/tensorflow,xodus7/tensorflow,aam-at/tensorflow,ghchinoy/tensorflow,gojira/tensorflow,jhseu/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Xeralux/tensorflow,snnn/tensorflow,karllessard/tensorflow,freedomtan/tensorflow,girving/tensorflow,kevin-coder/tensorflow-fork,aam-at/tensorflow,kevin-coder/tensorflow-fork,gojira/tensorflow,kobejean/tensorflow,jhseu/tensorflow,xzturn/tensorflow,girving/tensorflow,Intel-tensorflow/tensorflow,benoitsteiner/tensorflow-xsmm,xodus7/tensorflow,Xeralux/tensorflow,apark263/tensorflow,eaplatanios/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,lukeiwanski/tensorflow,tensorflow/tensorflow,yanchen036/tensorflow,dendisuhubdy/tensorflow,chemelnucfin/tensorflow,annarev/tensorflow,ppwwyyxx/tensorflow,dancingdan/tensorflow,benoitsteiner/tensorflow-xsmm,Bismarrck/tensorflow,Xeralux/tensorflow,paolodedios/tensorflow,manipopopo/tensorflow,freedomtan/tensorflow,yongtang/tensorflow,meteorcloudy/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,allenlavoie/tensorflow,alshedivat/tensorflow,paolodedios/tensorflow,cxxgtxy/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ZhangXinNan/tensorflow,girving/tensorflow,drpngx/tensorflow,kevin-coder/tensorflow-fork,Intel-tensorflow/tensorflow,nburn42/tensorflow,ppwwyyxx/tensorflow,davidzchen/tensorflow,benoitsteiner/tensorflow-xsmm,gautam1858/tensorflow,frreiss/tensorflow-fred,xzturn/tensorflow,arborh/tensorflow,renyi533/tensorflow,arborh/tensorflow,apark263/tensorflow,adit-chandra/tensorflow,davidzchen/tensorflow,dongjoon-hyun/tensorflow,AnishShah/tensorflow,theflofly/tensorflow,arborh/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xodus7/tensorflow,gunan/tensorflow,xodus7/tensorflow,dendisuhubdy/tensorflow,gojira/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,ZhangXinNan/tensorflow,theflofly/tensorflow,brchiu/tensorflow,xodus7/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-Corporation/tensorflow,gojira/tensorflow,alshedivat/tensorflow,xzturn/tensorflow,nburn42/tensorflow,kobejean/tensorflow,tensorflow/tensorflow-pywrap_saved_model,kevin-coder/tensorflow-fork,alsrgv/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,seanli9jan/tensorflow,gautam1858/tensorflow,brchiu/tensorflow,dongjoon-hyun/tensorflow,drpngx/tensorflow,Bismarrck/tensorflow,snnn/tensorflow,chemelnucfin/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,girving/tensorflow,ageron/tensorflow,kobejean/tensorflow,xzturn/tensorflow,kevin-coder/tensorflow-fork,tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,brchiu/tensorflow,aldian/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,lukeiwanski/tensorflow,dendisuhubdy/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,snnn/tensorflow,hfp/tensorflow-xsmm,DavidNorman/tensorflow,ghchinoy/tensorflow,annarev/tensorflow,tensorflow/tensorflow,brchiu/tensorflow,zasdfgbnm/tensorflow,aam-at/tensorflow,dongjoon-hyun/tensorflow,drpngx/tensorflow,jalexvig/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jart/tensorflow,tensorflow/tensorflow-pywrap_saved_model,kobejean/tensorflow,dongjoon-hyun/tensorflow,yongtang/tensorflow,dongjoon-hyun/tensorflow,davidzchen/tensorflow,Intel-Corporation/tensorflow,alshedivat/tensorflow,jendap/tensorflow,chemelnucfin/tensorflow,xzturn/tensorflow,karllessard/tensorflow,caisq/tensorflow,chemelnucfin/tensorflow,apark263/tensorflow,xodus7/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,ghchinoy/tensorflow,annarev/tensorflow,jbedorf/tensorflow,apark263/tensorflow,hfp/tensorflow-xsmm,xzturn/tensorflow,girving/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,eaplatanios/tensorflow,gojira/tensorflow,zasdfgbnm/tensorflow,gunan/tensorflow,Bismarrck/tensorflow,gautam1858/tensorflow,jendap/tensorflow,zasdfgbnm/tensorflow,hfp/tensorflow-xsmm,paolodedios/tensorflow,aldian/tensorflow,freedomtan/tensorflow,frreiss/tensorflow-fred,allenlavoie/tensorflow,jendap/tensorflow,theflofly/tensorflow,ZhangXinNan/tensorflow,ppwwyyxx/tensorflow,jalexvig/tensorflow,nburn42/tensorflow,gojira/tensorflow,jart/tensorflow,gunan/tensorflow,aldian/tensorflow,alshedivat/tensorflow,frreiss/tensorflow-fred,brchiu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jalexvig/tensorflow,snnn/tensorflow,jendap/tensorflow,dancingdan/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,apark263/tensorflow,dongjoon-hyun/tensorflow,jalexvig/tensorflow,annarev/tensorflow,lukeiwanski/tensorflow,Xeralux/tensorflow,asimshankar/tensorflow,paolodedios/tensorflow,apark263/tensorflow,gautam1858/tensorflow,brchiu/tensorflow,arborh/tensorflow,dendisuhubdy/tensorflow,jalexvig/tensorflow,ZhangXinNan/tensorflow,apark263/tensorflow,renyi533/tensorflow,DavidNorman/tensorflow,dendisuhubdy/tensorflow,zasdfgbnm/tensorflow,DavidNorman/tensorflow,allenlavoie/tensorflow,nburn42/tensorflow,lukeiwanski/tensorflow,theflofly/tensorflow,gunan/tensorflow,jart/tensorflow,gunan/tensorflow,chemelnucfin/tensorflow,Intel-tensorflow/tensorflow,drpngx/tensorflow,gojira/tensorflow,jbedorf/tensorflow,ghchinoy/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,hehongliang/tensorflow,caisq/tensorflow,renyi533/tensorflow,kevin-coder/tensorflow-fork,aam-at/tensorflow,arborh/tensorflow,yanchen036/tensorflow,gautam1858/tensorflow,arborh/tensorflow,caisq/tensorflow,aam-at/tensorflow,ZhangXinNan/tensorflow,theflofly/tensorflow,dongjoon-hyun/tensorflow,yanchen036/tensorflow,kevin-coder/tensorflow-fork,allenlavoie/tensorflow,karllessard/tensorflow,cxxgtxy/tensorflow,karllessard/tensorflow,Bismarrck/tensorflow,karllessard/tensorflow,nburn42/tensorflow,hfp/tensorflow-xsmm,dancingdan/tensorflow,asimshankar/tensorflow,davidzchen/tensorflow,ppwwyyxx/tensorflow,aselle/tensorflow,AnishShah/tensorflow,sarvex/tensorflow,snnn/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,frreiss/tensorflow-fred,alsrgv/tensorflow,alsrgv/tensorflow,arborh/tensorflow,dendisuhubdy/tensorflow,aldian/tensorflow,freedomtan/tensorflow,alshedivat/tensorflow,brchiu/tensorflow,gojira/tensorflow,jbedorf/tensorflow,chemelnucfin/tensorflow,hehongliang/tensorflow,ppwwyyxx/tensorflow,DavidNorman/tensorflow,adit-chandra/tensorflow,jhseu/tensorflow,davidzchen/tensorflow,theflofly/tensorflow,aselle/tensorflow,allenlavoie/tensorflow,aam-at/tensorflow,adit-chandra/tensorflow,annarev/tensorflow,ageron/tensorflow,xodus7/tensorflow,frreiss/tensorflow-fred,hehongliang/tensorflow,alshedivat/tensorflow,seanli9jan/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,lukeiwanski/tensorflow,aam-at/tensorflow,xzturn/tensorflow,paolodedios/tensorflow,theflofly/tensorflow,eaplatanios/tensorflow,karllessard/tensorflow,seanli9jan/tensorflow,apark263/tensorflow,AnishShah/tensorflow,yanchen036/tensorflow,aselle/tensorflow,Intel-tensorflow/tensorflow,apark263/tensorflow,snnn/tensorflow,renyi533/tensorflow,gunan/tensorflow,zasdfgbnm/tensorflow,DavidNorman/tensorflow,ghchinoy/tensorflow,renyi533/tensorflow,dancingdan/tensorflow,davidzchen/tensorflow,sarvex/tensorflow,jalexvig/tensorflow,ppwwyyxx/tensorflow,jbedorf/tensorflow,kobejean/tensorflow,xzturn/tensorflow,alshedivat/tensorflow,yongtang/tensorflow,hfp/tensorflow-xsmm,alsrgv/tensorflow,ageron/tensorflow,freedomtan/tensorflow,zasdfgbnm/tensorflow,lukeiwanski/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,seanli9jan/tensorflow,ageron/tensorflow,hehongliang/tensorflow,cxxgtxy/tensorflow,girving/tensorflow,adit-chandra/tensorflow,seanli9jan/tensorflow,sarvex/tensorflow,frreiss/tensorflow-fred