-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathtensorflex.ex
40 lines (30 loc) · 873 Bytes
/
tensorflex.ex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
defmodule Tensorflex do
@on_load :load_nifs
def load_nifs do
:erlang.load_nif("priv/Tensorflex", 0)
end
def version do
raise "NIF tf_version/0 not implemented"
end
def new_graph do
raise "NIF tf_new_graph/0 not implemented"
end
def new_op(_graph, _op, _label) do
raise "NIF tf_new_op/3 not implemented"
end
def new_import_graph_def_opts do
raise "NIF tf_new_import_graph_def_opts/0 not implemented"
end
def graph_import_graph_def(_graph, _graph_def, _graph_opts) do
raise "NIF graph_import_graph_def/3 not implemented"
end
def string_constant(_value) do
raise "NIF tf_string_constant/1 not implemented"
end
def read_file(_file) do
raise "NIF read_file/1 not implemented"
end
def create_and_run_sess(_graph, _opdesc, _tensor) do
raise "NIF tf_create_and_run_sess/3 not implemented"
end
end