Skip to content

torch.clone produces a tensor with incorrect strides for non memory-dense tensors #64176

Closed

Description

@anjali411
import torch
x=torch.randn(10,8, dtype=torch.complex64).t()[::2, ::2]
print(x.clone().stride())

out: (5, 1)
expected out: (1, 4)

@ngimel found this bug while helping me debug failures in #59380

cc @VitalyFedyunin @jamesr66a

Activity

  1. added
    triaged
    on Aug 30, 2021
  2. added this to the 1.10.0 milestone on Aug 30, 2021
  3. added
    module: memory format
    on Aug 30, 2021
  4. modified the milestones: 1.10.0, 1.11.0 on Oct 5, 2021
  5. malfet commented on Oct 5, 2021

    @malfet
    Collaborator

    Tentatively moving this one to 1.11

  6. anjali411 commented on Oct 5, 2021

    @anjali411
    ContributorAuthor

    fixed in #59380

  7. removed this from the 1.11.0 milestone on Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: memory formattriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions