-
Notifications
You must be signed in to change notification settings - Fork 214
SavedModelBundle exporter(...) build: mvn install [ERROR] tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/framework/BoundedTensorSpecProto.java:[129,55] cannot find symbol symbol: variable internal_static_tensorflow_BoundedTensorSpecProto_descriptor location: class org.tensorflow.proto.framework.StructProtos #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @aday00 , I'm not sure why you are getting this error, it looks like your generated protos are out-of-sync somehow, maybe a But the |
Thank you kindly @karllessard ! It appears the SIG document is https://docs.google.com/document/d/1RqSIKKFLE8kMSjUuZWsVS4JNCRHIrCYiuWcFZRNk2oU/edit# and mentions this:
It appears @Shajan's changes are discussed in #89 and the commit d845856 I don't see a unit test, so I'm not sure how to use this to save a model. Any tips would be greatly appreciated! In the mean time, I'm happy to continue with the |
Yes, the portion for saving the model is not in this branch yet but work will start soon and might differ a bit from what you see in my Keeping you posted! and please feel free to share any feedbacks on the draft version in my repo as they can also apply to the next version. |
Thanks @karllessard ! Ran
Clean worked, good. Next,
From some SIGJVM email https://groups.google.com/a/tensorflow.org/d/msg/jvm/gGKO-hVS4Pc/LF4rLJOdAQAJ , it seems cherry-picking the |
The save_model commit is karllessard@bdb0420 That patch won't apply cleanly to mainline tensorflow-java, so I'll try to make the change by hand. |
Applying the
My changes are almost identical to @karllessard's code karllessard@bdb0420. I sometimes made changes that did not alter the function of the code, but made the code more similar to Karl's branch, which has the My changes are mostly with changes related to NdArray namespacing. The diffs are below, starting with Ops.java:
Graph.java:
SavedModelBundle:
Session:
SavedModelBundleTest exercises the
If anything looks incorrect, would a colleague kindly let me know? I plan to test soon. Thanks again! |
Preliminary tests of model save/load pass. Test output shows
The main run() method for testing is now:
save_and_load_tests is:
Model save is tested in save_test, which relies on @karllessard's SavedModelBundle
Model load is tested in load_test, which is heavily based on Karl's helpful unit tests:
The result is a saved model in /tmp. Would any colleagues kindly give their opinion -- does this look reasonable?
|
karllessard@bdb0420 Further code discussion is at https://groups.google.com/a/tensorflow.org/forum/#!msg/jvm/gGKO-hVS4Pc/LF4rLJOdAQAJ This commit manually merges Karl's code to mainline tensorflow-java. However, Ops.java is unchanged here, because there were no functional changes in Ops.java. This commit fixes tensorflow#100 Later, model-saving may be expected to be function-based, not session-based. Function-based model saving is discussed in tensorflow#101
This is follow-up to #97 (comment) and #97 (comment). I'm trying to build a tensorflow-java with SavedModelBundle
exporter(...)
but encounter a build error.Specifically, I
git checkout
thesave_model
branch of https://github.com/karllessard/tensorflow-java andmvn install
, but encounter a build error. I would raise an issue in https://github.com/karllessard/tensorflow-java, but https://github.com/karllessard/tensorflow-java/issues redirects to https://github.com/karllessard/tensorflow-java/pulls, so I cannot raise an issue there.Would a colleague kindly advise how to fix the following build error:
Rather than debug https://github.com/karllessard/tensorflow-java, I would be happy if there were a
save_model
branch in https://github.com/tensorflow/java. However, I'm just trying to build something to test model save/export and load -- it does not matter to me how this is achieved.The text was updated successfully, but these errors were encountered: