Skip to content
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

Deprecated vebosity #69

Merged
merged 4 commits into from
Oct 10, 2016
Merged

Deprecated vebosity #69

merged 4 commits into from
Oct 10, 2016

Conversation

ljubobratovicrelja
Copy link
Member

Added deprecation messages as suggested in #61. Also deprecated dcv.core.algorithm.ranged, as suggested in #44. With norm and asType deprecated, should be good to close #35.

@9il, could you check those messages and tell if you think those should be formatted differently? And if you agree, I would like to close those 3 issues with this PR.

@@ -133,7 +134,8 @@ Params:
Returns:
Returns normalized input tensor.
*/
deprecated @nogc nothrow auto normalized(Range, size_t N)(auto ref Slice!(N, Range) tensor, NormType normType = NormType.L2)
deprecated("Use array based division: tensor[] /= norm, or mir.ndslice.algorithm: tensor.ndEach!(v => v /= norm)")
Copy link
Member

Choose a reason for hiding this comment

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

Should be (ref v) in the lambda

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks!

@@ -168,7 +170,8 @@ Returns:
Scaled input tensor.

*/
deprecated @nogc nothrow auto scaled(Scalar, Range, size_t N)(auto ref Slice!(N, Range) tensor, Scalar alpha = 1, Scalar beta = 0)
deprecated("Function will be moved to Mir")
@nogc nothrow auto scaled(Scalar, Range, size_t N)(auto ref Slice!(N, Range) tensor, Scalar alpha = 1, Scalar beta = 0)
Copy link
Member

Choose a reason for hiding this comment

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

Let's do not deprecate what is not in already in Mir

Copy link
Member Author

Choose a reason for hiding this comment

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

Mkay - done!

@@ -196,6 +199,7 @@ Params:
maxValue = Maximal value output tensor should contain.

*/
deprecated("Function will be moved to Mir")
Copy link
Member

Choose a reason for hiding this comment

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

Ditto

@ljubobratovicrelja
Copy link
Member Author

I'd like to merge this one - @9il, I'll close #61 since deprecated have got the description, and #35 since norm and asType are both deprecated, leaving #44 opened until Mir equivalents for ranged and scaled arrive. Good?

@9il
Copy link
Member

9il commented Oct 10, 2016

Awesome! Thanks!

@ljubobratovicrelja ljubobratovicrelja merged commit f40a3b0 into master Oct 10, 2016
@ljubobratovicrelja ljubobratovicrelja deleted the deprecated-vebosity branch October 10, 2016 14:03
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.

norm and asType can be deprecated.
2 participants