Step 1 toward automatically assigning # of TPU cores.
Step 1 toward automatically assigning # of TPU cores.

Also fix the API as num_cores is not a good API. Changed to a debugging oriented argument using_single_core. Ideally we should not need that in future.

The updated lstm example cannot work with TF 1.10 anymore.

PiperOrigin-RevId: 210632592

paolodedios/tensorflow,paolodedios/tensorflow,theflofly/tensorflow,kobejean/tensorflow,apark263/tensorflow,hehongliang/tensorflow,Intel-tensorflow/tensorflow,xzturn/tensorflow,jendap/tensorflow,renyi533/tensorflow,dancingdan/tensorflow,alsrgv/tensorflow,frreiss/tensorflow-fred,chemelnucfin/tensorflow,aam-at/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,jhseu/tensorflow,apark263/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-Corporation/tensorflow,apark263/tensorflow,adit-chandra/tensorflow,girving/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Bismarrck/tensorflow,ppwwyyxx/tensorflow,gautam1858/tensorflow,freedomtan/tensorflow,dongjoon-hyun/tensorflow,arborh/tensorflow,ppwwyyxx/tensorflow,asimshankar/tensorflow,karllessard/tensorflow,hfp/tensorflow-xsmm,gunan/tensorflow,ppwwyyxx/tensorflow,renyi533/tensorflow,gautam1858/tensorflow,gunan/tensorflow,sarvex/tensorflow,seanli9jan/tensorflow,chemelnucfin/tensorflow,chemelnucfin/tensorflow,freedomtan/tensorflow,AnishShah/tensorflow,hfp/tensorflow-xsmm,alsrgv/tensorflow,alshedivat/tensorflow,ghchinoy/tensorflow,ageron/tensorflow,annarev/tensorflow,dongjoon-hyun/tensorflow,petewarden/tensorflow,alshedivat/tensorflow,Bismarrck/tensorflow,arborh/tensorflow,renyi533/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-pywrap_saved_model,davidzchen/tensorflow,Intel-tensorflow/tensorflow,Intel-Corporation/tensorflow,jhseu/tensorflow,petewarden/tensorflow,freedomtan/tensorflow,jbedorf/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,apark263/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,apark263/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,kevin-coder/tensorflow-fork,cxxgtxy/tensorflow,renyi533/tensorflow,paolodedios/tensorflow,hehongliang/tensorflow,freedomtan/tensorflow,snnn/tensorflow,Bismarrck/tensorflow,seanli9jan/tensorflow,renyi533/tensorflow,kevin-coder/tensorflow-fork,davidzchen/tensorflow,renyi533/tensorflow,gautam1858/tensorflow,aam-at/tensorflow,ppwwyyxx/tensorflow,cxxgtxy/tensorflow,karllessard/tensorflow,xzturn/tensorflow,ghchinoy/tensorflow,DavidNorman/tensorflow,xzturn/tensorflow,petewarden/tensorflow,alsrgv/tensorflow,kevin-coder/tensorflow-fork,xzturn/tensorflow,hfp/tensorflow-xsmm,DavidNorman/tensorflow,cxxgtxy/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,alshedivat/tensorflow,paolodedios/tensorflow,kevin-coder/tensorflow-fork,tensorflow/tensorflow-experimental_link_static_libraries_once,jhseu/tensorflow,alshedivat/tensorflow,theflofly/tensorflow,renyi533/tensorflow,asimshankar/tensorflow,girving/tensorflow,aam-at/tensorflow,snnn/tensorflow,Bismarrck/tensorflow,AnishShah/tensorflow,chemelnucfin/tensorflow,freedomtan/tensorflow,ghchinoy/tensorflow,theflofly/tensorflow,chemelnucfin/tensorflow,ppwwyyxx/tensorflow,ppwwyyxx/tensorflow,jhseu/tensorflow,frreiss/tensorflow-fred,jhseu/tensorflow,snnn/tensorflow,aldian/tensorflow,dancingdan/tensorflow,kobejean/tensorflow,ageron/tensorflow,alshedivat/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow-pywrap_saved_model,aldian/tensorflow,AnishShah/tensorflow,xzturn/tensorflow,asimshankar/tensorflow,tensorflow/tensorflow,snnn/tensorflow,jbedorf/tensorflow,xodus7/tensorflow,alshedivat/tensorflow,AnishShah/tensorflow,brchiu/tensorflow,tensorflow/tensorflow-pywrap_saved_model,AnishShah/tensorflow,gunan/tensorflow,dancingdan/tensorflow,kevin-coder/tensorflow-fork,tensorflow/tensorflow-experimental_link_static_libraries_once,ageron/tensorflow,yongtang/tensorflow,frreiss/tensorflow-fred,xodus7/tensorflow,gunan/tensorflow,xodus7/tensorflow,DavidNorman/tensorflow,chemelnucfin/tensorflow,aldian/tensorflow,DavidNorman/tensorflow,xzturn/tensorflow,aam-at/tensorflow,adit-chandra/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,ageron/tensorflow,alshedivat/tensorflow,Intel-tensorflow/tensorflow,hehongliang/tensorflow,jendap/tensorflow,jhseu/tensorflow,xodus7/tensorflow,adit-chandra/tensorflow,snnn/tensorflow,tensorflow/tensorflow,petewarden/tensorflow,brchiu/tensorflow,paolodedios/tensorflow,alshedivat/tensorflow,jhseu/tensorflow,Bismarrck/tensorflow,Bismarrck/tensorflow,brchiu/tensorflow,brchiu/tensorflow,dongjoon-hyun/tensorflow,dancingdan/tensorflow,dancingdan/tensorflow,brchiu/tensorflow,asimshankar/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,dongjoon-hyun/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,ghchinoy/tensorflow,davidzchen/tensorflow,Intel-tensorflow/tensorflow,petewarden/tensorflow,frreiss/tensorflow-fred,alshedivat/tensorflow,frreiss/tensorflow-fred,ghchinoy/tensorflow,karllessard/tensorflow,jbedorf/tensorflow,Intel-Corporation/tensorflow,Intel-Corporation/tensorflow,Bismarrck/tensorflow,yongtang/tensorflow,alshedivat/tensorflow,xodus7/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,dongjoon-hyun/tensorflow,kobejean/tensorflow,chemelnucfin/tensorflow,kobejean/tensorflow,arborh/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,chemelnucfin/tensorflow,tensorflow/tensorflow,arborh/tensorflow,jendap/tensorflow,kobejean/tensorflow,renyi533/tensorflow,annarev/tensorflow,annarev/tensorflow,dancingdan/tensorflow,Bismarrck/tensorflow,hfp/tensorflow-xsmm,paolodedios/tensorflow,Bismarrck/tensorflow,theflofly/tensorflow,seanli9jan/tensorflow,girving/tensorflow,jhseu/tensorflow,annarev/tensorflow,petewarden/tensorflow,karllessard/tensorflow,adit-chandra/tensorflow,ppwwyyxx/tensorflow,davidzchen/tensorflow,ppwwyyxx/tensorflow,gunan/tensorflow,xzturn/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-pywrap_saved_model,DavidNorman/tensorflow,ageron/tensorflow,Bismarrck/tensorflow,aldian/tensorflow,hfp/tensorflow-xsmm,paolodedios/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,snnn/tensorflow,freedomtan/tensorflow,frreiss/tensorflow-fred,ageron/tensorflow,seanli9jan/tensorflow,gunan/tensorflow,ghchinoy/tensorflow,kevin-coder/tensorflow-fork,tensorflow/tensorflow-pywrap_saved_model,theflofly/tensorflow,brchiu/tensorflow,ageron/tensorflow,annarev/tensorflow,aam-at/tensorflow,aam-at/tensorflow,freedomtan/tensorflow,ghchinoy/tensorflow,ppwwyyxx/tensorflow,cxxgtxy/tensorflow,apark263/tensorflow,ageron/tensorflow,gunan/tensorflow,xodus7/tensorflow,Intel-tensorflow/tensorflow,xodus7/tensorflow,Intel-tensorflow/tensorflow,petewarden/tensorflow,AnishShah/tensorflow,davidzchen/tensorflow,brchiu/tensorflow,annarev/tensorflow,brchiu/tensorflow,snnn/tensorflow,theflofly/tensorflow,theflofly/tensorflow,dancingdan/tensorflow,seanli9jan/tensorflow,jhseu/tensorflow,xodus7/tensorflow,apark263/tensorflow,frreiss/tensorflow-fred,dongjoon-hyun/tensorflow,aldian/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,cxxgtxy/tensorflow,arborh/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,girving/tensorflow,alsrgv/tensorflow,paolodedios/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow,davidzchen/tensorflow,sarvex/tensorflow,ppwwyyxx/tensorflow,sarvex/tensorflow,theflofly/tensorflow,jendap/tensorflow,ghchinoy/tensorflow,renyi533/tensorflow,ageron/tensorflow,kevin-coder/tensorflow-fork,adit-chandra/tensorflow,gautam1858/tensorflow,xodus7/tensorflow,jbedorf/tensorflow,girving/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aam-at/tensorflow,dancingdan/tensorflow,ghchinoy/tensorflow,yongtang/tensorflow,yongtang/tensorflow,gunan/tensorflow,petewarden/tensorflow,karllessard/tensorflow,davidzchen/tensorflow,kevin-coder/tensorflow-fork,petewarden/tensorflow,kobejean/tensorflow,seanli9jan/tensorflow,adit-chandra/tensorflow,freedomtan/tensorflow,annarev/tensorflow,davidzchen/tensorflow,asimshankar/tensorflow,chemelnucfin/tensorflow,jendap/tensorflow,freedomtan/tensorflow,ppwwyyxx/tensorflow,sarvex/tensorflow,aam-at/tensorflow,kevin-coder/tensorflow-fork,alsrgv/tensorflow,renyi533/tensorflow,dongjoon-hyun/tensorflow,jendap/tensorflow,girving/tensorflow,tensorflow/tensorflow,dancingdan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,apark263/tensorflow,adit-chandra/tensorflow,hehongliang/tensorflow,snnn/tensorflow,kobejean/tensorflow,gautam1858/tensorflow,AnishShah/tensorflow,xzturn/tensorflow,yongtang/tensorflow,ageron/tensorflow,alsrgv/tensorflow,frreiss/tensorflow-fred,DavidNorman/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,renyi533/tensorflow,karllessard/tensorflow,apark263/tensorflow,DavidNorman/tensorflow,alsrgv/tensorflow,brchiu/tensorflow,asimshankar/tensorflow,theflofly/tensorflow,snnn/tensorflow,jendap/tensorflow,adit-chandra/tensorflow,renyi533/tensorflow,adit-chandra/tensorflow,alsrgv/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,hfp/tensorflow-xsmm,Intel-Corporation/tensorflow,girving/tensorflow,yongtang/tensorflow,dancingdan/tensorflow,ghchinoy/tensorflow,freedomtan/tensorflow,arborh/tensorflow,apark263/tensorflow,gunan/tensorflow,girving/tensorflow,Bismarrck/tensorflow,arborh/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,asimshankar/tensorflow,seanli9jan/tensorflow,annarev/tensorflow,aam-at/tensorflow,theflofly/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,DavidNorman/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow-experimental_link_static_libraries_once,yongtang/tensorflow,ppwwyyxx/tensorflow,kobejean/tensorflow,DavidNorman/tensorflow,jbedorf/tensorflow,davidzchen/tensorflow,hehongliang/tensorflow,dongjoon-hyun/tensorflow,xzturn/tensorflow,sarvex/tensorflow,adit-chandra/tensorflow,dancingdan/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,seanli9jan/tensorflow,kevin-coder/tensorflow-fork,ghchinoy/tensorflow,jbedorf/tensorflow,adit-chandra/tensorflow,gunan/tensorflow,girving/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,alshedivat/tensorflow,cxxgtxy/tensorflow,hfp/tensorflow-xsmm,dongjoon-hyun/tensorflow,jendap/tensorflow,Intel-Corporation/tensorflow,yongtang/tensorflow,alsrgv/tensorflow,arborh/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,yongtang/tensorflow,hfp/tensorflow-xsmm,DavidNorman/tensorflow,adit-chandra/tensorflow,xzturn/tensorflow,theflofly/tensorflow,kobejean/tensorflow,AnishShah/tensorflow,Intel-Corporation/tensorflow,jbedorf/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,jhseu/tensorflow,kobejean/tensorflow,dongjoon-hyun/tensorflow,seanli9jan/tensorflow,ageron/tensorflow,davidzchen/tensorflow,Intel-tensorflow/tensorflow,Intel-Corporation/tensorflow,alsrgv/tensorflow,annarev/tensorflow,alsrgv/tensorflow,asimshankar/tensorflow,tensorflow/tensorflow-pywrap_saved_model,cxxgtxy/tensorflow,hehongliang/tensorflow,gunan/tensorflow,chemelnucfin/tensorflow,frreiss/tensorflow-fred,xzturn/tensorflow,aam-at/tensorflow,xodus7/tensorflow,annarev/tensorflow,jbedorf/tensorflow,Intel-tensorflow/tensorflow,dongjoon-hyun/tensorflow,jhseu/tensorflow,aldian/tensorflow,seanli9jan/tensorflow,xzturn/tensorflow,aldian/tensorflow,AnishShah/tensorflow,chemelnucfin/tensorflow,snnn/tensorflow,girving/tensorflow,jendap/tensorflow,aldian/tensorflow,aam-at/tensorflow,jendap/tensorflow,kobejean/tensorflow,hehongliang/tensorflow,girving/tensorflow,sarvex/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,annarev/tensorflow,freedomtan/tensorflow,frreiss/tensorflow-fred,xodus7/tensorflow,AnishShah/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,asimshankar/tensorflow,freedomtan/tensorflow,kevin-coder/tensorflow-fork,snnn/tensorflow,arborh/tensorflow,arborh/tensorflow,tensorflow/tensorflow,petewarden/tensorflow,brchiu/tensorflow,DavidNorman/tensorflow,jbedorf/tensorflow,apark263/tensorflow,AnishShah/tensorflow,asimshankar/tensorflow,jbedorf/tensorflow,brchiu/tensorflow,sarvex/tensorflow,jbedorf/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,theflofly/tensorflow,davidzchen/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,cxxgtxy/tensorflow,seanli9jan/tensorflow,ageron/tensorflow,jbedorf/tensorflow,jendap/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,arborh/tensorflow,aam-at/tensorflow,tensorflow/tensorflow,asimshankar/tensorflow,arborh/tensorflow