Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Creating a binding for TensorFlowLite for xamarin ios does not work

$
0
0

Hello,

I am trying to make a "binding objc for xamarin ios" with the documentation of xamarin (https://docs.microsoft.com/fr-fr/xamarin/ios/platform/binding-objective-c/walkthrough) to have the TensorFlowLite library on xamarin iOS (git: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/experimental/objc).

I manage to create the static library with the source code and have it compiled. So I get the FAT binary.
But on the other hand when I want to create the files "ApiDefinition.cs" and "StructsAndEnum.cs" with "sharpie bind", it works but I have a lot of error in the files:

ex:
Call of a method with a void parameter:
static extern unsafe TfLiteStatus TfLiteTensorCopyFromBuffer (TfLiteTensor * tensor, void * input_data, nuint input_data_size);

I could see it in the source code that it is indeed the case:
TFL_CAPI_EXPORT extern TfLiteStatus TfLiteTensorCopyFromBuffer (TfLiteTensor * tensor, const void * input_data, size_t input_data_size);

Has anyone ever had the same problem? How can I fix it?

Thank you


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>