GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix Clazy findings by kecsap · Pull Request #878 · tiny-dnn/tiny-dnn

Conversation

@kecsap

@kecsap kecsap commented Sep 22, 2017

Copy link
Copy Markdown
Contributor

This is the continuation of my previous PR: #518

  1. Add missing refs to some loops.
  2. const keyword has no effect on return values.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kecsap
Fix Clazy findings
70558e5
edgarriba
edgarriba requested changes Nov 29, 2017
View reviewed changes
Comment thread tiny_dnn/core/framework/tensor.h
auto host_begin() { return storage_.xbegin(); }

const auto host_begin() const { return storage_.cxbegin(); }
auto host_begin() const { return storage_.cxbegin(); }

@edgarriba edgarriba Nov 29, 2017

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

@Randl what's the reason to keep constness here ?
@kecsap could you verify through test that this change doesn't affect the expected behavior ?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@beru beru Nov 30, 2017

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I guess the constness can be deduced in these cases.

Out of curiosity, I checked C++ spec draft (around 10.1.7.4 The auto specifier) but couldn't locate the exact guideline.
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/n4659.pdf

And I wonder about the test edgarriba mentioned. I hope we can let compilers manage the task.
I mean... I don't think additional test is needed for this change.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@edgarriba
Merge branch 'master' into clazy
59ed003
@edgarriba edgarriba added the PR: Needs Review label Nov 29, 2017
beru
beru requested changes Nov 30, 2017
View reviewed changes

@beru beru left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

@kecsap Please apply clang-format since travis-ci jobs failed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@beru
Merge branch 'master' into clazy
1182387
@beru beru mentioned this pull request Dec 3, 2017
Applying clang-format shouldn't be compulsory with pull requests #911
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@beru beru beru requested changes
@edgarriba edgarriba edgarriba requested changes

Requested changes must be addressed to merge this pull request.

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

PR: Needs Review

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@kecsap @beru @edgarriba
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.