KEMBAR78
Complex CPU torch.acos is wrong on some values · Issue #42952 · pytorch/pytorch · GitHub
Skip to content

Complex CPU torch.acos is wrong on some values #42952

@mruberry

Description

@mruberry
t = torch.tensor(0.-1.0000e+20j)
torch.acos(t)
: tensor(nan+infj)

Expected (1.5708, 46.7448).

cc @ezyang @gchanan @zou3519 @anjali411 @dylanbespalko @VitalyFedyunin @mruberry @rgommers

Metadata

Metadata

Assignees

Labels

high prioritymodule: complexRelated to complex number support in PyTorchmodule: correctness (silent)issue that returns an incorrect result silentlymodule: cpuCPU specific problem (e.g., perf, algorithm)module: numpyRelated to numpy support, and also numpy compatibility of our operatorstriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions