Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

discrepancy of results for dpctl.tensor.sin and dpt.tensor.expm1 for f4 and f8 data types on gpu #1439

Copy link
Copy link
@vtavana

Description

@vtavana
Issue body actions

For the following cases the results are different for float32 and float64 on gpu.

  • sin
>>> dpt.sin(dpt.asarray(-0.,dtype='f4',device='gpu'))
usm_ndarray(0., dtype=float32)

>>> dpt.sin(dpt.asarray(-0.,dtype='f8',device='gpu'))
usm_ndarray(-0.)
  • expm1
>>> dpt.expm1(dpt.asarray(-0.,dtype='f4',device='gpu'))
usm_ndarray(-0., dtype=float32)

>>> dpt.expm1(dpt.asarray(-0.,dtype='f8',device='gpu'))
usm_ndarray(0.)
Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.