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

Function _tile_for_broadcasting

tensorflow/python/ops/signal/fft_ops.py:229–237  ·  view source on GitHub ↗
(matrix, t)

Source from the content-addressed store, hash-verified

227 is_even = _math_ops.cast(1 - (fft_length[-1] % 2), _dtypes.complex64)
228
229 def _tile_for_broadcasting(matrix, t):
230 expanded = _array_ops.reshape(
231 matrix,
232 _array_ops.concat([
233 _array_ops.ones([_array_ops.rank(t) - 2], _dtypes.int32),
234 _array_ops.shape(matrix)
235 ], 0))
236 return _array_ops.tile(
237 expanded, _array_ops.concat([_array_ops.shape(t)[:-2], [1, 1]], 0))
238
239 def _mask_matrix(length):
240 """Computes t_n = exp(sqrt(-1) * pi * n^2 / line_len)."""

Callers 1

_gradFunction · 0.85

Calls 6

reshapeMethod · 0.80
onesMethod · 0.80
tileMethod · 0.80
concatMethod · 0.45
rankMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected