Skip to content
Advertisement

Tag: swig

SWIG: Access Array of Structs in Python

Say I have the following static constexpr array of c struct: How can I access elements in ns1::ns2::PERSONS in python by using swig? One way I can think of is to create a accessor like const Person& get(uint32_t index) in the swig interface file. Tho, I wonder whether there is a more elegant way that I don’t have to create

Error building Tensorflow on CentOS 7

I am trying to compile Tensorflow (r1.3) on CentOS 7. My environment: gcc (g++) 7.20, bazel 0.5.3, python3 (with all necessary dependencies listed on tensorflow web site), swig 3.0.12, openjdk 8. Everything is installed in the users scope, without root access. Whenever I am trying to build a python package invoking following command “bazel build –config=opt //tensorflow/tools/pip_package:build_pip_package” I am getting

Advertisement