Skip to content

Commit c1db4b7

Browse files
Exclude invalid tests
1 parent 4813260 commit c1db4b7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/checkpoint.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ struct SaveRestoreOps {
1313
/// The CheckpointMaker lazily modifies the graph creating the nodes needed for saving/restoring.
1414
/// When one wants to save/restore from or into a session, one calls the save/restore methods
1515
/// # Example
16-
/// ```
16+
/// ```no_run,ignore
17+
/// # let _: &str = stringify!{ // workaround to not compile the code
18+
/// # // FIXME make this test compile and run
1719
/// let mut scope = Scope::new_root_scope();
1820
/// // add operations to define the graph
1921
/// // ...
@@ -29,8 +31,8 @@ struct SaveRestoreOps {
2931
/// // then we restore in a different session to continue there
3032
/// let new_session = Session::new(&SessionOptions::new(), &scope.graph())?;
3133
/// checkpoint_maker.restore(&new_session, "data/checkpoint")?;
34+
/// # };
3235
/// ```
33-
///
3436
#[derive(Debug)]
3537
pub struct CheckpointMaker {
3638
scope: Scope,

src/eager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//!
66
//! This API requires the `eager` feature to be enabled as follows:
77
//!
8-
//! ```
8+
//! ```toml
99
//! [dependencies]
1010
//! tensorflow = { version = "0.18", features = ["eager"] }
1111
//! ```

0 commit comments

Comments
 (0)