Skip to content

Commit cfa137e

Browse files
authored
Merge pull request #409 from adamcrume/master
Upgrade to TensorFlow 2.13.0
2 parents c376dde + 74ec5e6 commit cfa137e

File tree

26 files changed

+10565
-889
lines changed

26 files changed

+10565
-889
lines changed

.github/workflows/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tensorflow == 2.12.0
1+
tensorflow == 2.13.0

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ rustversion = "1.0.9"
3737
[dev-dependencies]
3838
rand = "0.8.5"
3939
serial_test = "0.9.0"
40-
tempdir = "0.3"
40+
tempfile = "3.7.0"
4141

4242
[features]
4343
default = ["tensorflow-sys"]

examples/addition/model.pb

0 Bytes
Binary file not shown.

run-valgrind

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function run {
1919
echo
2020
}
2121

22-
tensorflow_version=2.12.0
22+
tensorflow_version=2.13.0
2323

2424
valgrind_log=valgrind.log
2525
truncate --size=0 "$valgrind_log"

src/checkpoint.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use crate::option_insert_result::OptionInsertWithResult;
21
use crate::{ops, Operation, Scope, Session, SessionRunArgs, Status, Tensor, Variable};
32

43
#[derive(Debug)]
@@ -92,7 +91,7 @@ impl CheckpointMaker {
9291
)?;
9392
let tensors = all_variable_ops
9493
.iter()
95-
.map(|v| v.output(0).clone())
94+
.map(|v| v.output(0))
9695
.collect::<Vec<_>>();
9796

9897
let mut g = self.scope.graph_mut();
@@ -355,7 +354,7 @@ mod tests {
355354
first_scope_data.scope.new_sub_scope("checkpoint"),
356355
Box::from(first_scope_data.variables.clone()),
357356
);
358-
let temp_dir = tempdir::TempDir::new("test-tensorflow")?;
357+
let temp_dir = tempfile::tempdir()?;
359358
let checkpoint_path = temp_dir.path().join("checkpoint-vars");
360359
let checkpoint_path_str = checkpoint_path
361360
.into_os_string()

0 commit comments

Comments
 (0)