rust icon indicating copy to clipboard operation
rust copied to clipboard

undefined symbol: TF_StringGetDataPointer, version VERS_1.0

Open andreclaudino opened this issue 3 years ago • 1 comments
trafficstars

I am trying to load a saved model folder, but, with no other information, the following error is raised:

undefined symbol: TF_StringGetDataPointer, version VERS_1.0

I am using the tensorflow=0.1.7.0 and tensorflow-sys=0.20.0.

andreclaudino avatar Jan 11 '22 14:01 andreclaudino

I expect that you are trying to link your application to an older version of the tensorflow library. Could you tell me how did you build your app?

The TF_StringGetDataPointer is relatively new function that was introduced in TF 2.4 or 2.5. So the version under that may fail to build. Ref #304

The following examples use saved_model format, and are expected to work.

  • https://github.com/tensorflow/rust/tree/master/examples/regression_savedmodel
  • https://github.com/tensorflow/rust/tree/master/examples/mobilenetv3

dskkato avatar Jan 11 '22 22:01 dskkato