Skip to content

linspace with negative steps throws bad error message  #25810

@ssnl

Description

@ssnl
torch.linspace(10, 0, -1)

RuntimeError: Trying to create tensor with negative dimension -1: [-1]

Metadata

Metadata

Assignees

Labels

module: error checkingBugs related to incorrect/lacking error checkingsmallWe think this is a small issue to fix. Consider knocking off high priority small issuestriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions