在TensorFlow中加载保存的模型

在TensorFlow中加载保存的模型,tensorflow,Tensorflow,在//tensorflow/c:c_api_test大端机器上运行/test时,在读取子测试中保存的模型时,测试失败 测试失败日志如下所示: 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/t

//tensorflow/c:c_api_test
大端机器上运行
/test时,在读取子测试中保存的模型时,测试失败

测试失败日志如下所示:

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
2017-06-29 09:04:34.080751:I tensorflow/cc/saved_model/loader.cc:226]
正在从以下位置加载SavedModel://.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/0000123
2017-06-29 09:04:34.083793:I tensorflow/cc/saved_model/loader.cc:145]
正在恢复SavedModel包。
2017-06-29 09:04:34.087103:W tensorflow/core/framework/op_kernel.cc:1158]未实现:从读取器读取具有不同尾端的包
2017-06-29 09:04:34.087445:W tensorflow/core/framework/op_kernel.cc:1158]未实现:从读取器读取具有不同尾端的包
2017-06-29 09:04:34.088046:W tensorflow/core/framework/op_kernel.cc:1158]未实现:从读取器读取具有不同尾端的包
2017-06-29 09:04:34.088227:I tensorflow/cc/saved_model/loader.cc:274]加载saved模型:失败。耗时7493微秒。tensorflow/c/c_api_测试。抄送:1265:失败
预期:TF_OK
即:0等于:TF_GetCode
那是:12
在阅读本测试用例时,有没有办法将上述SavedModel转换为Big-Endian

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