Skip to content

Fix various rustc and clippy warnings. #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 4, 2017

Conversation

daschl
Copy link
Contributor

@daschl daschl commented Feb 28, 2017

This changeset fixes various rustc and clippy warnings. Note
that it also gets rid of some type aliases which have been
private and are unused in the library (and since they are
private they can't be used from outside anyways).

src/lib.rs Outdated
@@ -343,6 +343,7 @@ c_enum!("Type of a single tensor element.", TF_DataType, DataType {
/// 16-bit floating point.
value Half = 19,

/// Tensorflow Resource (name, container, device,...)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'f' in TensorFlow needs to be capitalized.

src/lib.rs Outdated
pub fn version() -> std::result::Result<String, Utf8Error> {
unsafe { CStr::from_ptr(tf::TF_Version()).to_str().map(|s| s.to_string()) }
}

////////////////////////

#[deprecated(note="Use Shape instead.")]
type TensorShape = Shape;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a bug and should have been public, which I fixed. Please cancel this deletion.

This changeset fixes various rustc and clippy warnings. Note
that it also gets rid of some type aliases which have been
private and are unused in the library (and since they are
private they can't be used from outside anyways).
@daschl
Copy link
Contributor Author

daschl commented Mar 3, 2017

@adamcrume updated and rebased!

@adamcrume adamcrume merged commit 3e078d3 into tensorflow:master Mar 4, 2017
@adamcrume
Copy link
Contributor

Thanks!

ramon-garcia pushed a commit to ramon-garcia/tensorflow-rust that referenced this pull request May 20, 2023
* Displays formatted grid as per tensorflow#62

* update usage help

* update readme for tensorflow#62
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants