Ask questionsGraph importGraphDef doesn't match documentation

In the TF java documentation It looks as if you can import a Graph Defition from a byte array. In their examples they also read from a byte array.

The code here, however, requires a GraphDef.

What's the best way to overcome this? Or am I not understanding what a GraphDef is?


System information

  • TensorFlow version: 0.1.0-SNAPSHOT (2.2.0)

Answer questions karllessard

We don't support (yet) loading hdf5 models directly to TF Java. I've already used this script in the past to convert the .h5 model to .pb and it worked pretty well.

Also, you can forget my previous comment about the GraphDef format being legacy, it looks like this format is still being used when exporting a saved model.


Related questions

No questions were found.
Github User Rank List