eaplatanios / tensorflow_scala

TensorFlow API for the Scala Programming Language
http://platanios.org/tensorflow_scala/
Apache License 2.0
936 stars 96 forks source link

Python2scala example #101

Closed lucataglia closed 5 years ago

lucataglia commented 6 years ago

In this example I show how restore a graph build with the Python API of TensorFlow. I restore all the nodes and operations just to prove how that can be done. Is also showed that the training can be restarted using the values of the weights previously trained.

eaplatanios commented 5 years ago

@lucaRadicalbit Thanks a lot for this Luca! It's a great example to have and I'm really sorry I delayed reviewing it for so long.

eaplatanios commented 5 years ago

Have you by any chance tested this to see if it works file with version 0.3.0 (current master branch)? I think it should but it'd be great to know for sure before merging. :)

lucataglia commented 5 years ago

@eaplatanios The only hardcoded path is the one to retrieve the checkpoint. I don't know if there is some utils that can let me retrieve it in a different way. I try running this example with the last commit on master and with some minor changes everything works ! Let me know is there are other modification needed

eaplatanios commented 5 years ago

@lucataglia Thanks for making the requested changes. Could you please also rename the files that end with "pullRequest" or "pull-request" please? I will then merge this. :)