-
Notifications
You must be signed in to change notification settings - Fork 15
Description
I'm trying to make tensorflex work according to new installation way (through hex package).
When I first try to use the library in my project, I get this error:
23:06:09.125 [warn] The on_load function for module Elixir.Tensorflex.NIFs returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(priv/Tensorflex.so, 2): image not found\''}}
Looks like elixir expects to find .so file in my priv/
directory, not in deps/tensorflex/priv/
.
Ok, let's try to bring this file here: cp deps/tensorflex/priv/Tensorflex.so ./priv
Now the error looks like this:
23:15:09.919 [warn] The on_load function for module Elixir.Tensorflex.NIFs returned:
{:error, {:load_failed, 'Failed to load NIF library: \'dlopen(priv/Tensorflex.so, 2): no suitable image found. Did find:\n\tpriv/Tensorflex.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00\n\t/Users/dmitryzhelnin/projects/pallium/pallium/priv/Tensorflex.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00\''}}
Here is another approach I was trying to make work.
If I try rebuild the .so file with make:
rm -rf deps/tensorflex/priv/
rm -rf priv
make -C deps/tensorflex/
cp deps/tensorflex/priv/Tensorflex.so priv
and I get another error:
2018-07-31 23:19:56.355019: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.2 AVX AVX2 FMA
Segmentation fault: 11
Also if I just clone tensorflex repository and try to run tests in it, it just fails with same segmantation fault after few tests succeeded:
..........Segmentation fault: 11
I'm using macOS High Sierra 10.13.4.
Tensorflow seems to be installed properly and works fine with Extensor library, but we have strong wish to switch to Tensorflex, so any help will be appreciated