File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -21,3 +21,16 @@ random = "0.12"
21
21
tensorflow_unstable = []
22
22
23
23
[workspace ]
24
+
25
+ [[example ]]
26
+ name = " addition"
27
+
28
+ [[example ]]
29
+ name = " expressions"
30
+ required-features = [" tensorflow_unstable" ]
31
+
32
+ [[example ]]
33
+ name = " regression"
34
+
35
+ [[example ]]
36
+ name = " regression_savedmodel"
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ use std::error::Error;
5
5
use std:: result:: Result ;
6
6
use std:: process:: exit;
7
7
use tensorflow:: Code ;
8
- // Workaround for https://github.com/rust-lang/cargo/issues/1570
9
- #[ cfg( feature = "tensorflow_unstable" ) ]
10
8
use tensorflow:: expr:: { Compiler , Placeholder } ;
11
9
use tensorflow:: Graph ;
12
10
use tensorflow:: Session ;
@@ -60,16 +58,6 @@ impl Checker {
60
58
}
61
59
}
62
60
63
- // Workaround for https://github.com/rust-lang/cargo/issues/1570
64
- #[ cfg( not( feature = "tensorflow_unstable" ) ) ]
65
- fn run ( ) -> Result < ( ) , Box < Error > > {
66
- println ! ( "examples/expressions.rs is disabled because the `tensorflow_unstable` feature is \
67
- not enabled!") ;
68
- Ok ( ( ) )
69
- }
70
-
71
- // Workaround for https://github.com/rust-lang/cargo/issues/1570
72
- #[ cfg( feature = "tensorflow_unstable" ) ]
73
61
fn run ( ) -> Result < ( ) , Box < Error > > {
74
62
// Build the graph
75
63
let mut g = Graph :: new ( ) ;
You can’t perform that action at this time.
0 commit comments