mindspore.ops.Sinc

View Source On Gitee
class mindspore.ops.Sinc[source]

Computes the normalized sinc of input.

Warning

This is an experimental API that is subject to change or deletion.

Refer to mindspore.ops.sinc() for more details.

Supported Platforms:

Ascend GPU CPU

Examples

>>> import mindspore
>>> import numpy as np
>>> import mindspore.ops.operations.math_ops as ops
>>> from mindspore import Tensor, dtype
>>> sinc = ops.Sinc()
>>> x = Tensor(np.array([0.62, 0.28, 0.43, 0.62]), mindspore.float32)
>>> output = sinc(x)
>>> print(output)
[0.47735003 0.8759357  0.7224278  0.47735003]