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

Revert "replace reshape by view" #594

Merged
merged 1 commit into from Apr 29, 2020
Merged

Revert "replace reshape by view" #594

merged 1 commit into from Apr 29, 2020

Conversation

cpuhrsch
Copy link
Contributor

@cpuhrsch cpuhrsch commented Apr 29, 2020

Reverts #409

We can use view instead of reshape if we are certain that the to-be-viewed Tensor is always shape compliant with the target shape, which won't necessarily apply to input Tensors. The advantage is that we'll always avoid a copy and can be sure to not incur a copy (lest we get the referenced error). Let's revert this change that was implemented due to my comment. Thank you following up on this Vincent!

@cpuhrsch cpuhrsch requested a review from vincentqb April 29, 2020 04:14
@codecov
Copy link

codecov bot commented Apr 29, 2020

Codecov Report

Merging #594 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #594   +/-   ##
=======================================
  Coverage   88.69%   88.70%           
=======================================
  Files          21       21           
  Lines        2203     2204    +1     
=======================================
+ Hits         1954     1955    +1     
  Misses        249      249           
Impacted Files Coverage Δ
torchaudio/functional.py 95.62% <100.00%> (+<0.01%) ⬆️
torchaudio/transforms.py 95.74% <100.00%> (ø)

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 d678357...3b02c17. Read the comment docs.

Copy link
Contributor

@vincentqb vincentqb left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for submitting this PR!

@vincentqb vincentqb merged commit 1305782 into master Apr 29, 2020
@mthrok mthrok deleted the revert-409-view branch October 27, 2020 17:09
mthrok pushed a commit to mthrok/audio that referenced this pull request Feb 26, 2021
[WIP] Torchtext Update for build.sh
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.

None yet

2 participants