In TensorFlow configure, write the .tf_configure.bazelrc into the --workspace path if provided.
In TensorFlow configure, write the .tf_configure.bazelrc into the --workspace path if provided.

This allows repositories that depend on TensorFlow to execute
'bazel run @org_tensorflow//:configure -- --workspace $(pwd)'
to configure TensorFlow.
END_PUBLIC

Before this change, the .tf_configure.bazelrc ended up in the bazel exec root, and 'bazel clean' would undo the configuration.

PiperOrigin-RevId: 215209207

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