Create directory automatically in save_weights with h5 format
Create directory automatically in save_weights with h5 format

This fix tries to address the issue raised in 25835 where
save_weight with tf format creates directories automatically
as needed, yet h5 format throws out excetion.

This fix update the save_weight with h5 format to address
the discrepancy between h5 and tf.

This fix fixes 25835.

Signed-off-by: Yong Tang <765086fe2e0c1f980161f127fec596800f327f62@outlook.com>

sarvex/tensorflow,ghchinoy/tensorflow,renyi533/tensorflow,sarvex/tensorflow,Intel-Corporation/tensorflow,ageron/tensorflow,xzturn/tensorflow,adit-chandra/tensorflow,petewarden/tensorflow,theflofly/tensorflow,aldian/tensorflow,jbedorf/tensorflow,Intel-tensorflow/tensorflow,davidzchen/tensorflow,ppwwyyxx/tensorflow,ppwwyyxx/tensorflow,jbedorf/tensorflow,yongtang/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,tensorflow/tensorflow,renyi533/tensorflow,ghchinoy/tensorflow,davidzchen/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jbedorf/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,adit-chandra/tensorflow,xzturn/tensorflow,gautam1858/tensorflow,Intel-Corporation/tensorflow,xzturn/tensorflow,karllessard/tensorflow,xzturn/tensorflow,gunan/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,aam-at/tensorflow,paolodedios/tensorflow,arborh/tensorflow,paolodedios/tensorflow,ghchinoy/tensorflow,aldian/tensorflow,paolodedios/tensorflow,aam-at/tensorflow,aam-at/tensorflow,Intel-Corporation/tensorflow,kevin-coder/tensorflow-fork,kevin-coder/tensorflow-fork,gautam1858/tensorflow,DavidNorman/tensorflow,aldian/tensorflow,yongtang/tensorflow,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,DavidNorman/tensorflow,Intel-tensorflow/tensorflow,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,jbedorf/tensorflow,annarev/tensorflow,aam-at/tensorflow,chemelnucfin/tensorflow,sarvex/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow,petewarden/tensorflow,alsrgv/tensorflow,davidzchen/tensorflow,aldian/tensorflow,arborh/tensorflow,chemelnucfin/tensorflow,DavidNorman/tensorflow,yongtang/tensorflow,ghchinoy/tensorflow,alsrgv/tensorflow,xzturn/tensorflow,gunan/tensorflow,kevin-coder/tensorflow-fork,sarvex/tensorflow,tensorflow/tensorflow-pywrap_saved_model,theflofly/tensorflow,adit-chandra/tensorflow,chemelnucfin/tensorflow,annarev/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jbedorf/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,ageron/tensorflow,adit-chandra/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,cxxgtxy/tensorflow,jbedorf/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,jbedorf/tensorflow,davidzchen/tensorflow,gunan/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_tf_optimizer,renyi533/tensorflow,cxxgtxy/tensorflow,gautam1858/tensorflow,sarvex/tensorflow,ageron/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow,aldian/tensorflow,karllessard/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,jhseu/tensorflow,arborh/tensorflow,sarvex/tensorflow,yongtang/tensorflow,xzturn/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ppwwyyxx/tensorflow,jbedorf/tensorflow,xzturn/tensorflow,Intel-Corporation/tensorflow,petewarden/tensorflow,jhseu/tensorflow,davidzchen/tensorflow,freedomtan/tensorflow,yongtang/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow,ghchinoy/tensorflow,yongtang/tensorflow,arborh/tensorflow,theflofly/tensorflow,kevin-coder/tensorflow-fork,aam-at/tensorflow,jbedorf/tensorflow,kevin-coder/tensorflow-fork,ghchinoy/tensorflow,DavidNorman/tensorflow,renyi533/tensorflow,annarev/tensorflow,ppwwyyxx/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-pywrap_saved_model,adit-chandra/tensorflow,arborh/tensorflow,arborh/tensorflow,freedomtan/tensorflow,annarev/tensorflow,ageron/tensorflow,cxxgtxy/tensorflow,karllessard/tensorflow,jhseu/tensorflow,theflofly/tensorflow,ghchinoy/tensorflow,theflofly/tensorflow,cxxgtxy/tensorflow,adit-chandra/tensorflow,ageron/tensorflow,tensorflow/tensorflow,chemelnucfin/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,alsrgv/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,jbedorf/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,frreiss/tensorflow-fred,davidzchen/tensorflow,adit-chandra/tensorflow,jhseu/tensorflow,gautam1858/tensorflow,kevin-coder/tensorflow-fork,jbedorf/tensorflow,arborh/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,renyi533/tensorflow,Intel-tensorflow/tensorflow,Intel-tensorflow/tensorflow,gunan/tensorflow,petewarden/tensorflow,aam-at/tensorflow,ppwwyyxx/tensorflow,DavidNorman/tensorflow,DavidNorman/tensorflow,annarev/tensorflow,ageron/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,annarev/tensorflow,annarev/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,cxxgtxy/tensorflow,aam-at/tensorflow,freedomtan/tensorflow,ghchinoy/tensorflow,kevin-coder/tensorflow-fork,arborh/tensorflow,ppwwyyxx/tensorflow,aldian/tensorflow,sarvex/tensorflow,davidzchen/tensorflow,xzturn/tensorflow,aam-at/tensorflow,alsrgv/tensorflow,davidzchen/tensorflow,freedomtan/tensorflow,petewarden/tensorflow,annarev/tensorflow,petewarden/tensorflow,gautam1858/tensorflow,cxxgtxy/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,DavidNorman/tensorflow,alsrgv/tensorflow,karllessard/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,cxxgtxy/tensorflow,chemelnucfin/tensorflow,ppwwyyxx/tensorflow,aam-at/tensorflow,ghchinoy/tensorflow,ppwwyyxx/tensorflow,theflofly/tensorflow,sarvex/tensorflow,gautam1858/tensorflow,frreiss/tensorflow-fred,DavidNorman/tensorflow,paolodedios/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,annarev/tensorflow,xzturn/tensorflow,aldian/tensorflow,yongtang/tensorflow,jhseu/tensorflow,arborh/tensorflow,kevin-coder/tensorflow-fork,arborh/tensorflow,frreiss/tensorflow-fred,davidzchen/tensorflow,xzturn/tensorflow,theflofly/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,freedomtan/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,xzturn/tensorflow,freedomtan/tensorflow,annarev/tensorflow,Intel-tensorflow/tensorflow,alsrgv/tensorflow,ghchinoy/tensorflow,theflofly/tensorflow,ageron/tensorflow,yongtang/tensorflow,renyi533/tensorflow,aam-at/tensorflow,petewarden/tensorflow,arborh/tensorflow,renyi533/tensorflow,gunan/tensorflow,cxxgtxy/tensorflow,DavidNorman/tensorflow,chemelnucfin/tensorflow,theflofly/tensorflow,davidzchen/tensorflow,yongtang/tensorflow,petewarden/tensorflow,alsrgv/tensorflow,ageron/tensorflow,jbedorf/tensorflow,aldian/tensorflow,adit-chandra/tensorflow,DavidNorman/tensorflow,karllessard/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,kevin-coder/tensorflow-fork,tensorflow/tensorflow-pywrap_saved_model,ghchinoy/tensorflow,gautam1858/tensorflow,theflofly/tensorflow,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,karllessard/tensorflow,davidzchen/tensorflow,gautam1858/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jhseu/tensorflow,jhseu/tensorflow,ageron/tensorflow,tensorflow/tensorflow,Intel-Corporation/tensorflow,chemelnucfin/tensorflow,gunan/tensorflow,gautam1858/tensorflow,paolodedios/tensorflow,freedomtan/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,frreiss/tensorflow-fred,ageron/tensorflow,adit-chandra/tensorflow,paolodedios/tensorflow,jhseu/tensorflow,alsrgv/tensorflow,DavidNorman/tensorflow,theflofly/tensorflow,aam-at/tensorflow,ppwwyyxx/tensorflow,yongtang/tensorflow,theflofly/tensorflow,freedomtan/tensorflow,xzturn/tensorflow,gunan/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,Intel-Corporation/tensorflow,frreiss/tensorflow-fred,alsrgv/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-pywrap_saved_model,renyi533/tensorflow,freedomtan/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,paolodedios/tensorflow,Intel-Corporation/tensorflow,jhseu/tensorflow,ageron/tensorflow,gunan/tensorflow,tensorflow/tensorflow,arborh/tensorflow,freedomtan/tensorflow,jhseu/tensorflow,gunan/tensorflow,chemelnucfin/tensorflow,aam-at/tensorflow,alsrgv/tensorflow,ageron/tensorflow,freedomtan/tensorflow,ppwwyyxx/tensorflow,frreiss/tensorflow-fred,kevin-coder/tensorflow-fork,gunan/tensorflow,ppwwyyxx/tensorflow,DavidNorman/tensorflow,chemelnucfin/tensorflow,adit-chandra/tensorflow,kevin-coder/tensorflow-fork,tensorflow/tensorflow-pywrap_saved_model