Skip to content

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

Closed
@vtavana

Description

@vtavana

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.)

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