Skip to content

Commit c6edf73

Browse files
authored
Merge pull request #371 from adamcrume/master
Prepare 0.19.0 release
2 parents 3b48a57 + 844cd7a commit c6edf73

File tree

7 files changed

+22
-11
lines changed

7 files changed

+22
-11
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## Release 0.19.0
4+
5+
### Additions
6+
7+
- Improved debug formatting of tensors
8+
- Add accessors for operation named inputs and outputs
9+
- Support loading TensorFlow library dynamically at runtime
10+
11+
### Changes
12+
13+
- Upgrade to TensorFlow 2.9.1
14+
315
## Release 0.18.0
416

517
### Additions

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tensorflow"
3-
version = "0.18.0"
3+
version = "0.19.0"
44
authors = ["Adam Crume <[email protected]>"]
55
description = "Rust language bindings for TensorFlow."
66
license = "Apache-2.0"
@@ -22,7 +22,7 @@ features = ["private-docs-rs", "tensorflow_unstable", "ndarray", "eager"]
2222
libc = "0.2.98"
2323
num-complex = { version = "0.4.0", default-features = false }
2424
tensorflow-internal-macros = { version = "=0.0.2", path = "tensorflow-internal-macros" }
25-
tensorflow-sys = { version = "0.21.0", path = "tensorflow-sys" }
25+
tensorflow-sys = { version = "0.22.0", path = "tensorflow-sys" }
2626
byteorder = "1.4.3"
2727
crc = "2.0.0"
2828
half = "1.7.1"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ so if you are unsure please [check out the docs](https://www.tensorflow.org/inst
3838
Some of the examples use TensorFlow code written in Python and require a full TensorFlow
3939
installation.
4040

41-
The minimum supported Rust version is 1.55.
41+
The minimum supported Rust version is 1.58.
4242

4343
### Usage
4444
Add this to your `Cargo.toml`:
4545

4646
```toml
4747
[dependencies]
48-
tensorflow = "0.18.0"
48+
tensorflow = "0.19.0"
4949
```
5050

5151
and this to your crate root:
@@ -100,7 +100,7 @@ To enable GPU support, use the `tensorflow_gpu` feature in your Cargo.toml:
100100

101101
```
102102
[dependencies]
103-
tensorflow = { version = "0.18.0", features = ["tensorflow_gpu"] }
103+
tensorflow = { version = "0.19.0", features = ["tensorflow_gpu"] }
104104
```
105105

106106
## Manual TensorFlow Compilation

src/graph.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -669,10 +669,9 @@ impl Graph {
669669
None => None,
670670
Some(r) => Some(r?),
671671
};
672-
// Don't use Option::map because the CStrings need to outlive the
673-
// pointers and Option::map consumes the Option.
674-
let output_names_ptrs: Option<Vec<*const c_char>> =
675-
output_names_cstrs.map(|slice| slice.iter().map(|s| s.as_ptr()).collect());
672+
let output_names_ptrs: Option<Vec<*const c_char>> = output_names_cstrs
673+
.as_ref()
674+
.map(|slice| slice.iter().map(|s| s.as_ptr()).collect());
676675
let output_names_ptrs_ptr = match &output_names_ptrs {
677676
None => ptr::null(),
678677
Some(ref v) => v.as_ptr(),

tensorflow-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tensorflow-sys"
3-
version = "0.21.0"
3+
version = "0.22.0"
44
license = "Apache-2.0"
55
authors = [
66
"Adam Crume <[email protected]>",

tensorflow-sys/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To enable GPU support, use the `tensorflow_gpu` feature in your Cargo.toml:
1414

1515
```
1616
[dependencies]
17-
tensorflow-sys = { version = "0.21.0", features = ["tensorflow_gpu"] }
17+
tensorflow-sys = { version = "0.22.0", features = ["tensorflow_gpu"] }
1818
```
1919

2020
## Manual TensorFlow Compilation
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)