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 — Add test for convolution without bias (fails) by Randl · Pull Request #730 · tiny-dnn/tiny-dnn

Conversation

@Randl

@Randl Randl commented May 25, 2017

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

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

All reactions
@Randl
Add test for convolution without bias
859b50a
@Randl
Randl requested a review from edgarriba May 25, 2017 16:06
@mention-bot

mention-bot commented May 25, 2017

Copy link
Copy Markdown

@Randl, thanks for your PR! By analyzing the history of the files in this pull request, we identified @nyanp, @karandesai-96 and @edgarriba to be potential reviewers.

All reactions

Sorry, something went wrong.

Uh oh!

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

This was referenced May 25, 2017
Add tests for conv with no bias #726
Open
Turning off bias on conv layer leads to access violation #665
Closed
@edgarriba edgarriba added bug high priority labels May 25, 2017
@beru

beru commented May 26, 2017

Copy link
Copy Markdown
Contributor

In the file tiny_dnn/core/kernels/conv2d_op.h, Conv2dOp::compute method, vector::operator[] method is used with the local variable bias but size checking is absent.

I would change 3rd parameter type of these functions

  • kernels::conv2d_op_internal
  • kernels::conv2d_op_nnpack
  • kernels::conv2d_op_avx
    from const vec_t & to const vec_t * so that we can pass nullptr.

std::optional is from C++17 and tiny-dnn uses C++11, so we can't use it.

All reactions

Sorry, something went wrong.

Uh oh!

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

@Randl

Randl commented May 26, 2017 via email

Copy link
Copy Markdown
Contributor Author
While using a pointer is an obvious solution, that would hurt the quality of code IMHO. Having a pointer parameter in the middle of reference parameters is very inviting for mistakes. However, I have no better solution as for now.
All reactions

Sorry, something went wrong.

Uh oh!

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

@edgarriba

edgarriba commented May 26, 2017

Copy link
Copy Markdown
Member

we can pass a boolean flag saying whether there is bias or just pass the whole tensor and check the size

All reactions

Sorry, something went wrong.

Uh oh!

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

@edgarriba

edgarriba commented May 26, 2017

Copy link
Copy Markdown
Member

well, wait conv_params already has a this flag
https://github.com/tiny-dnn/tiny-dnn/blob/master/tiny_dnn/core/params/conv_params.h#L68

All reactions

Sorry, something went wrong.

Uh oh!

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

@Randl

Randl commented May 26, 2017

Copy link
Copy Markdown
Contributor Author

that's what is done in FC layer IIRC

All reactions

Sorry, something went wrong.

Uh oh!

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

@edgarriba

edgarriba commented May 26, 2017

Copy link
Copy Markdown
Member

@Randl take into account that once we refactor with Tensor, we can get rid of most of *_params since e.g. all size stuff will be encoded to the Tensor members

All reactions

Sorry, something went wrong.

Uh oh!

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

@edgarriba edgarriba mentioned this pull request Jun 5, 2017
Reduce duplicated code #746
Merged
@edgarriba edgarriba mentioned this pull request Jun 20, 2017
Tests without bias #772
Open
@beru
Merge branch 'master' into test_no_bias
39bd3fb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@edgarriba edgarriba Awaiting requested review from edgarriba

At least 1 approving review is required to merge this pull request.

Uh oh!

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

Assignees

No one assigned

Labels

bug high priority

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.

4 participants

@Randl @mention-bot @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.