File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -45,11 +45,15 @@ and this to your crate root:
4545extern 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
5458To include the especially unstable API (which is currently the ` expr ` module),
5559use ` --features tensorflow_unstable ` .
You can’t perform that action at this time.
0 commit comments