PointerScope
or something? https://github.com/tensorflow/java/blob/4c1c2718ef1c4c386891d92cf0d774d7e77a7dc1/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/internal/c_api/AbstractTF_Tensor.java#L101
SavedModelBundle.exporter("/data/").withSession(sess).withSignature(mySig).export
to save a model. It seems to save out fine (according to the cli tool). But when we're loading it from the Python side using tf.saved_model.load("/data/")
, we're getting the following error in ValueError: Feeds must be tensors
. Any ideas ?
GPUOptions gpu = ConfigProto.getDefaultInstance().getGpuOptions().toBuilder().setPerProcessGpuMemoryFraction(0.5).setAllowGrowth(true).build();
ConfigProto config = ConfigProto.newBuilder(ConfigProto.getDefaultInstance()).setLogDevicePlacement(true).mergeGpuOptions(gpu).build();