Skip to content

Conversation

WillBrennan
Copy link
Contributor

@WillBrennan WillBrennan commented Nov 22, 2019

Tried running the similarity reference with pytorch 1.3.1 and torchvision 0.4.2 but got an error on line 94 and 105 saying,

RuntimeError: Expected object of scalar type Bool but got scalar type Byte for argument #2 'other' in call to _th_and

, where the operations are between a byte tensor and a bool tensor. Fixed by changing all of the masking code to just use bool tensors.

@codecov-io
Copy link

codecov-io commented Nov 22, 2019

Codecov Report

Merging #1604 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1604   +/-   ##
=======================================
  Coverage   65.65%   65.65%           
=======================================
  Files          90       90           
  Lines        7085     7085           
  Branches     1075     1075           
=======================================
  Hits         4652     4652           
  Misses       2126     2126           
  Partials      307      307

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8e3e96...6775a7f. Read the comment docs.

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

Thanks!

@fmassa fmassa merged commit b590f8c into pytorch:master Nov 25, 2019
@WillBrennan WillBrennan deleted the willbrennan/fix-similarity-reference branch November 26, 2019 01:08
@WillBrennan
Copy link
Contributor Author

No worries 👍

@WillBrennan WillBrennan restored the willbrennan/fix-similarity-reference branch November 26, 2019 18:12
@WillBrennan WillBrennan deleted the willbrennan/fix-similarity-reference branch November 26, 2019 18:12
fmassa pushed a commit to fmassa/vision-1 that referenced this pull request Dec 18, 2019
facebook-github-bot pushed a commit that referenced this pull request Dec 19, 2019
Summary: Pull Request resolved: #1679

Reviewed By: cpuhrsch

Differential Revision: D19156833

Pulled By: fmassa

fbshipit-source-id: 77165540505982c3677e1b74f97c94c5cbc35b8f
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.

3 participants