You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unpack the above .tar.gz suitable for your system on a prefix that your
14
+
system's dynamic linker can use, for example, go to `/usr/local` and unpack there.
15
+
16
+
Mac note: the package contains a `.so` file, you will need to rename this to `.dylib` for
17
+
it to work.
18
+
19
+
Once you do that, you need to open the solution file on the top
20
+
level directory and build. This will produce both the TensorFlowSharp
21
+
library as well as compile the tests and samples.
22
+
23
+
## Building your own native TensorFlow library
24
+
25
+
You will wan to use Visual Studio 2017 or Visual Studio for Mac to build.
26
+
27
+
To build the TensorFlow C library from source,
28
+
[follow these instructions](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/go/README.md#building-the-tensorflow-c-library-from-source).
29
+
30
+
This includes checking out the Tensorflow sources, installing Bazel,
31
+
and building the core.
32
+
33
+
Once you do that, you will need to build the shared library.
34
+
First, in the tensorflow directory, run:
35
+
36
+
```bash
37
+
./configure
38
+
```
39
+
40
+
and answer the various prompts about your build. Important:
41
+
building with CUDA support provides better runtime performance
42
+
but has additional dependencies as discussed in the Tensorflow
43
+
installation Web page.
44
+
45
+
Once configured, run:
46
+
47
+
```bash
48
+
bazel build -c opt //tensorflow:libtensorflow.so
49
+
```
50
+
51
+
If you want debug symbols for Tensorflow, while debugging the binding:
Unpack the above .tar.gz suitable for your system on a prefix that your
141
-
system's dynamic linker can use, for example, go to `/usr/local` and unpack there.
142
-
143
-
Mac note: the package contains a `.so` file, you will need to rename this to `.dylib` for
144
-
it to work.
145
-
146
-
Once you do that, you need to open the solution file on the top
147
-
level directory and build. This will produce both the TensorFlowSharp
148
-
library as well as compile the tests and samples.
149
-
150
-
## Building your own native TensorFlow library
151
-
152
-
You will wan to use Visual Studio 2017 or Visual Studio for Mac to build.
153
-
154
-
To build the TensorFlow C library from source,
155
-
[follow these instructions](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/go/README.md#building-the-tensorflow-c-library-from-source).
156
-
157
-
This includes checking out the Tensorflow sources, installing Bazel,
158
-
and building the core.
159
-
160
-
Once you do that, you will need to build the shared library.
161
-
First, in the tensorflow directory, run:
162
-
163
-
```bash
164
-
./configure
165
-
```
166
-
167
-
and answer the various prompts about your build. Important:
168
-
building with CUDA support provides better runtime performance
169
-
but has additional dependencies as discussed in the Tensorflow
170
-
installation Web page.
171
-
172
-
Once configured, run:
173
-
174
-
```bash
175
-
bazel build -c opt //tensorflow:libtensorflow.so
176
-
```
177
-
178
-
If you want debug symbols for Tensorflow, while debugging the binding:
0 commit comments