在TensorFlow中加载SavedModel

时间:2017-07-04 10:46:41

标签: tensorflow

大端计算机上运行//tensorflow/c:c_api_test测试时,在子测试SavedModel中读取SavedModel时测试失败。

测试失败日志如下:

2017-06-29 09:04:34.080751: I tensorflow/cc/saved_model/loader.cc:226]   
Loading SavedModel from: <dir>/.cache/bazel/_bazel_test/24685d064c07f7346b48c2d13ec3ad69/execroot/tensorflow/bazel-out/local-opt/bin/tensorflow/c/c_api_test.runfiles/org_tensorflow/tensorflow/cc/saved_model/testdata/half_plus_two/00000123  
2017-06-29 09:04:34.083793: I tensorflow/cc/saved_model/loader.cc:145]   
Restoring SavedModel bundle.   
2017-06-29 09:04:34.087103: W tensorflow/core/framework/op_kernel.cc:1158] Unimplemented: Reading a bundle with different endianness from the reader   
2017-06-29 09:04:34.087445: W tensorflow/core/framework/op_kernel.cc:1158] Unimplemented: Reading a bundle with different endianness from the reader   
2017-06-29 09:04:34.088046: W tensorflow/core/framework/op_kernel.cc:1158] Unimplemented: Reading a bundle with different endianness from the reader   

2017-06-29 09:04:34.088227: I tensorflow/cc/saved_model/loader.cc:274] Loading SavedModel: fail. Took 7493 microseconds. tensorflow/c/c_api_test.cc:1265: Failure
          Expected: TF_OK
          Which is: 0 To be equal to: TF_GetCode(s)
          Which is: 12

有没有办法在阅读此测试用例的同时将上面的SavedModel转换为Big Endian?

解决此测试失败的适当方法是什么?

0 个答案:

没有答案