8000
We read every piece of feedback, and take your input very seriously.
T 8000 o see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7a0333 commit 127aae0Copy full SHA for 127aae0
tensorflow/lite/python/interpreter_wrapper/interpreter_wrapper.i
@@ -26,10 +26,7 @@ limitations under the License.
26
27
28
%typemap(in) TfLiteDelegate* {
29
- auto pointer_as_long = PyLong_AsLong($input);
30
- static_assert(sizeof(pointer_as_long)>=sizeof(TfLiteDelegate*),
31
- "TFLiteDelegate must be representable as a long.");
32
- $1 = reinterpret_cast<TfLiteDelegate*>(pointer_as_long);
+ $1 = reinterpret_cast<TfLiteDelegate*>(PyLong_AsVoidPtr($input));
33
}
34
35
0 commit comments