Skip to content

Fix Tensor.ResizeTo - #131423

Open
lilinus wants to merge 3 commits into
dotnet:mainfrom
lilinus:fix-tensor-resizeto
Open

Fix Tensor.ResizeTo#131423
lilinus wants to merge 3 commits into
dotnet:mainfrom
lilinus:fix-tensor-resizeto

Conversation

@lilinus

@lilinus lilinus commented Jul 27, 2026

Copy link
Copy Markdown
Contributor
  • Clear destination that is "beyond" flattened length of source
  • Add unit test coverage for ResizeTo for this and n general
  • I try to clarify the behiour of ResizeTo with regards to shape (I guess the intent is to make it work a bit like Pytorch's resize_)

But perhaps the implementation is correct and only the docs needs to be adjusted?

@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Jul 27, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-system-numerics-tensors
See info in area-owners.md if you want to be subscribed.

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

Labels

area-System.Numerics.Tensors community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant