Skip to content

Logspace broken for complex dtypes #38779

@anjali411

Description

@anjali411
>>> torch.logspace(-10j, 10j, steps=5)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: value cannot be converted to type float without overflow: (-0,-10)
>>> numpy.logspace(-10,10,4)
array([1.00000000e-10, 4.64158883e-04, 2.15443469e+03, 1.00000000e+10])

cc @ezyang @anjali411 @dylanbespalko

Metadata

Metadata

Assignees

Labels

module: complexRelated to complex number support in PyTorchtriagedThis 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