Fixed deprecated stuff only to find it still doesn't work(yay) #10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updated the code because it doesn't work with newer tensorflow.
output.graph.as_graph_def is an empty object.
tf.Session is gone.
The output graph is saved but requires a folder name and eventually found the pb file inside of it.
The step to run TOCO still doesn't work...
INFO: Build completed successfully, 1 total action
[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/text_format.cc:324] Error parsing text-format tensorflow.GraphDef: 1:1: Invalid control characters encountered in text.
[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/text_format.cc:324] Error parsing text-format tensorflow.GraphDef: 1:4: Interpreting non ascii codepoint 158.
[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/text_format.cc:324] Error parsing text-format tensorflow.GraphDef: 1:4: Expected identifier, got: �
2020-09-17 18:41:05.224753: F tensorflow/lite/toco/import_tensorflow.cc:2757] Check failed: ParseFromStringEitherTextOrBinary(input_file_contents, tf_graph.get())
But since I wasted time updating this thinking it would work, here's the pull request. Also, did I mention tensorflow is horrible?