MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _ymask

Function _ymask

tensorflow/python/ops/signal/fft_ops.py:254–257  ·  view source on GitHub ↗

A sequence of [1+0j, -1+0j, 1+0j, -1+0j, ...] with length `length`.

(length)

Source from the content-addressed store, hash-verified

252 _math_ops.cast(length, _dtypes.complex64))
253
254 def _ymask(length):
255 """A sequence of [1+0j, -1+0j, 1+0j, -1+0j, ...] with length `length`."""
256 return _math_ops.cast(1 - 2 * (_math_ops.range(length) % 2),
257 _dtypes.complex64)
258
259 y0 = grad[..., 0:1]
260 if rank == 1:

Callers 1

_gradFunction · 0.85

Calls 2

castMethod · 0.45
rangeMethod · 0.45

Tested by

no test coverage detected