Skip to content

fix bn channels_last contiguity check#50659

Closed
ngimel wants to merge 1 commit intomasterfrom
ngimel/bn_cl
Closed

fix bn channels_last contiguity check#50659
ngimel wants to merge 1 commit intomasterfrom
ngimel/bn_cl

Conversation

@ngimel
Copy link
Copy Markdown
Collaborator

@ngimel ngimel commented Jan 17, 2021

Fixes #42588
The contiguity check used to be for memory format suggested by grad_output->suggest_memory_format(), but an invariant guaranteed by derivatives.yaml is input->suggest_memory_format()

Copy link
Copy Markdown
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.

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@ngimel merged this pull request in 534c821.

@facebook-github-bot facebook-github-bot deleted the ngimel/bn_cl branch January 27, 2021 18:27
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Fixes pytorch#42588
The contiguity check used to be for memory format suggested by `grad_output->suggest_memory_format()`, but an invariant guaranteed by derivatives.yaml is `input->suggest_memory_format()`

Pull Request resolved: pytorch#50659

Reviewed By: mruberry

Differential Revision: D25938921

Pulled By: ngimel

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

CUDA Error in batchNorm

2 participants