Skip to content

Commit d355958

Browse files
authored
Update README.md
Update usage
1 parent 9e726b1 commit d355958

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,15 @@ and this to your crate root:
4545
extern crate tensorflow;
4646
```
4747

48-
Then run `cargo build -j 1`. Since TensorFlow is built during this process, and
49-
the TensorFlow build is very memory intensive, we recommend using the `-j 1`
50-
flag which tells cargo to use only one task, which in turn tells TensorFlow to
51-
build with only one task. Of course, if you have a lot of RAM, you can use a
52-
higher value.
48+
Then run `cargo build -j 1`. The tensorflow-sys crate's
49+
[`build.rs`](https://github.com/tensorflow/rust/blob/f204b39/tensorflow-sys/build.rs#L44-L52)
50+
now either downloads a pre-built, basic CPU only binary
51+
([the default](https://github.com/tensorflow/rust/pull/65))
52+
or compiles TensorFlow if forced to by an environment variable. If TensorFlow
53+
is compiled during this process, since the full compilation is very memory
54+
intensive, we recommend using the `-j 1` flag which tells cargo to use only one
55+
task, which in turn tells TensorFlow to build with only one task. Though, if
56+
you have a lot of RAM, you can obviously use a higher value.
5357

5458
To include the especially unstable API (which is currently the `expr` module),
5559
use `--features tensorflow_unstable`.

0 commit comments

Comments
 (0)