react-native-tensorflow
react-native-tensorflow copied to clipboard
Can't close TensorFlow session on iOS
As raised in issue #20, it impossible to feed the same model twice when using the regular RNTensorFlowInference API from the package. Therefore I had to close the model and open it again, but this is only working on android.
On iOS the close() function for this session raise a bug "RNTensorFlowInference unrecognized selector sent to instance" Which create a memory error if I keep creating and feeding new instances.
I have added the reset function to iOS now as mentioned in #20, so you should be able to call reset now. I keep the issue open though as you also mentioned the close function is not working correctly, which is something to look at as well