absalomedia / tensile

Tensorflow as a PHP extension (experimental)
Other
122 stars 15 forks source link

How to compile and run #1

Open azeemhassni opened 7 years ago

azeemhassni commented 7 years ago

It's almost impossible to have it running just from its introduction would be great if you can write basic guide to get it up and running.

absalomedia commented 7 years ago

It's by no means a stable build & very much a work in progress. The readme file attests to this. I initially had the basic Tensorflow shared object building which then went into the wider C code before Tensorflow 0.10 release. 0.10 & above, including the latest release of Tensorflow itself, have refactored how the shared C library is built & I'm still working my way through those changes

marcospassos commented 7 years ago

We're willing for a beta version! Any idea of where it comes?

ui1310 commented 7 years ago

When I try 'make test', I always got this message: Warning: PHP Startup: Unable to load dynamic library '/usr/local/tensile-master/modules/tensile.so' - /usr/local/tensile-master/modules/tensile.so: undefined symbol: TF_Version in Unknown on line 0

ui1310 commented 7 years ago

After I commented a line in tensor.c about TF_Version, 'make test' showed this message: Warning: PHP Startup: Unable to load dynamic library '/usr/local/tensile-master/modules/tensile.so' - /usr/local/tensile-master/modules/tensile.so: undefined symbol: define_tf_operation_description_class in Unknown on line 0

absalomedia commented 7 years ago

There's no way to run 'make test' currently as I haven't finished the compilation sequence of the Tensorflow core shared library (libtensorflow.so) into a stable Apache shared library - the tensile.so file - that becomes the final package.