diff --git a/Makefile b/Makefile index caa409f..2b58172 100644 --- a/Makefile +++ b/Makefile @@ -4,11 +4,10 @@ LIBTENSORFLOW_PATH = /usr/local/lib CFLAGS += -I$(ERLANG_PATH) CFLAGS += -Ic_src LDFLAGS += -L$(LIBTENSORFLOW_PATH) -LIB_SO_NAME = priv/TensorflEx.so +LIB_SO_NAME = priv/Tensorflex.so CFLAGS += -fPIC -NIF=c_src/TensorflEx.c +NIF=c_src/Tensorflex.c $(LIB_SO_NAME): $(NIF) mkdir -p priv $(CC) $(CFLAGS) -shared $(LDFLAGS) $^ -ltensorflow -o $@ - diff --git a/c_src/TensorflEx.c b/c_src/Tensorflex.c similarity index 98% rename from c_src/TensorflEx.c rename to c_src/Tensorflex.c index 94ecc3a..7ab2781 100644 --- a/c_src/TensorflEx.c +++ b/c_src/Tensorflex.c @@ -115,5 +115,5 @@ static ErlNifFunc nif_funcs[] = { "create_and_run_sess", 3, create_and_run_sess } }; -ERL_NIF_INIT(Elixir.TensorflEx, nif_funcs, res_loader, NULL, NULL, NULL) +ERL_NIF_INIT(Elixir.Tensorflex, nif_funcs, res_loader, NULL, NULL, NULL) diff --git a/lib/tensorflex.ex b/lib/tensorflex.ex index 14a56c6..d965888 100644 --- a/lib/tensorflex.ex +++ b/lib/tensorflex.ex @@ -1,8 +1,8 @@ -defmodule TensorflEx do +defmodule Tensorflex do @on_load :load_nifs def load_nifs do - :erlang.load_nif("priv/TensorflEx", 0) + :erlang.load_nif("priv/Tensorflex", 0) end def version do diff --git a/mix.exs b/mix.exs index 0482690..3261696 100644 --- a/mix.exs +++ b/mix.exs @@ -1,4 +1,4 @@ -defmodule TensorflEx.MixProject do +defmodule Tensorflex.MixProject do use Mix.Project def project do