简体   繁体   中英

load tensorflow model in java

I have created, trained and saved a tensorflow model using python (yaml file) Now I want to load and use it in java (eclipse). haw can I do it?

I quote from here . The SavedModel format encodes all model information in a directory, not a file. So you want to provide the directory containing the saved_model.pb file to SavedModelBundle.load(), and not the file itself. For more information go to the github page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM