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

fix a bug in leakyReLU #48265

Closed
wants to merge 1 commit into from
Closed

Conversation

zhizhengwu
Copy link

@zhizhengwu zhizhengwu commented Nov 19, 2020

Summary: The scale variable needs to be a scalar, otherwise it will report the following error: "RuntimeError: Cannot input a tensor of dimension other than 0 as a scalar argument"

Test Plan: Tested locally and the error disappeared.

Reviewed By: jerryzh168

Differential Revision: D25094562

@zhizhengwu zhizhengwu force-pushed the export-D25094562 branch 4 times, most recently from 5a193b7 to 8daa8c8 Compare November 19, 2020 18:31
@dr-ci
Copy link

dr-ci bot commented Nov 19, 2020

💊 CI failures summary and remediations

As of commit 082abf8 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 6 times.

@codecov
Copy link

codecov bot commented Nov 19, 2020

Codecov Report

Merging #48265 (082abf8) into master (f98ab18) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master   #48265   +/-   ##
=======================================
  Coverage   80.96%   80.96%           
=======================================
  Files        1844     1844           
  Lines      199467   199467           
=======================================
+ Hits       161498   161500    +2     
+ Misses      37969    37967    -2     

Summary: The scale variable needs to be a scalar, otherwise it will report the following error: "RuntimeError: Cannot input a tensor of dimension other than 0 as a scalar argument"

Test Plan: Tested locally and the error disappeared.

Reviewed By: jerryzh168

Differential Revision: D25094562

fbshipit-source-id: ad9803afb4d650585ca291d823003326e3f8342f
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@jerryzh168 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@jerryzh168 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@jerryzh168 merged this pull request in 7828a22.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants