c-api Questions

2

I am trying to convert a c-style array in c++ to a numpy array and ran into problems when trying to use the "PyArray_SimpleNewFromData" function. It turns out I need to call import_array() Thou...
Lvov asked 16/10, 2018 at 6:5

0

I'm using TensorFlow C API in C++ on linux to load a face detection model for inference. TensorFlow generates multiple threads and I want to restrict or confine the process to use one and only one ...
Goon asked 20/8, 2020 at 14:26

3

For learning purposes, how to code this Python example using the TensorFlow C API ? import tensorflow as tf hello = tf.constant("hello TensorFlow!") sess=tf.Session() print(sess.run(hello)) I ha...
Gerfalcon asked 5/6, 2017 at 22:38

4

I am going to send a c++ array to a python function as numpy array and get back another numpy array. After consulting with numpy documentation and some other threads and tweaking the code, finally ...
Lorrinelorry asked 22/5, 2015 at 4:3

2

Solved

I have an application that uses SQLite(version 3.7.2) to store data. I have a SQLite connection shared between multiple threads that writes and reads from the same SQLite db. SQLite is compiled wit...
Honorable asked 31/7, 2012 at 11:43

1

Solved

I'm in python code and need to check some value against PY_SSIZE_T_MAX (defined in the C-API of python). Can I access to PY_SSIZE_T_MAX value directly ? If not, is there a way to infer it thanks t...
Janeljanela asked 14/3, 2017 at 4:23

0

Note: There are some questions below that illustrate my thinking, but the only answer I'm looking for is the answer to the actual question, in the title. Not asking for "a book" here, or itemized r...
Perceive asked 5/6, 2016 at 17:18

0

I am embedding Lua in a programm for no-eabi device with 16Mhz 32-bit ARM7TDMI processor and 256Kb RAM (yes, that's GBA). Currently it's working flawlessly (thank you, StackOveflow users, for...
Heel asked 15/4, 2016 at 13:14

2

Solved

From my reading dbus performance should be twice slower than other messaging ipc mechanisms due to existence of a daemon. In the discussion of the so question which Linux IPC technique to use som...
Pseudocarp asked 1/8, 2014 at 17:39

1

Solved

I have a DBus server which exposes a method that requires a huge time to complete (about 3 minutes). The client performs a synchronous call to this method. The problem is, after exactly 25 secs th...
Eldreeda asked 28/6, 2012 at 12:53

3

Solved

I am writing a library in C++ which uses an older C API. The client of my library can specify callback functions, which are indirectly called through my library which is called through the C API. T...
Hereinbefore asked 12/2, 2012 at 19:53
1

© 2022 - 2024 — McMap. All rights reserved.