File tree 1 file changed +9
-5
lines changed
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:
45
45
extern crate tensorflow;
46
46
```
47
47
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.
53
57
54
58
To include the especially unstable API (which is currently the ` expr ` module),
55
59
use ` --features tensorflow_unstable ` .
You can’t perform that action at this time.
0 commit comments