MCPcopy Create free account
hub / github.com/apache/tvm / hamming_window

Function hamming_window

python/tvm/relax/op/create.py:283–315  ·  view source on GitHub ↗

Hamming window function. Parameters ---------- window_size : PrimExpr The size of returned window. periodic : PrimExpr If True, returns a window to be used as periodic function. If False, return a symmetric window. alpha : PrimExpr The co-effici

(window_size, periodic, alpha, beta, dtype)

Source from the content-addressed store, hash-verified

281
282
283def hamming_window(window_size, periodic, alpha, beta, dtype):
284 """Hamming window function.
285
286 Parameters
287 ----------
288 window_size : PrimExpr
289 The size of returned window.
290
291 periodic : PrimExpr
292 If True, returns a window to be used as periodic function.
293 If False, return a symmetric window.
294
295 alpha : PrimExpr
296 The co-efficient alpha.
297
298 beta : PrimExpr
299 The co-efficient beta.
300
301 Returns
302 -------
303 ret : relax.Expr
304 The result tensor.
305 """
306 if not isinstance(window_size, Expr):
307 window_size = PrimValue(window_size)
308 if not isinstance(periodic, Expr):
309 periodic = PrimValue(periodic)
310 if not isinstance(alpha, Expr):
311 alpha = PrimValue(alpha)
312 if not isinstance(beta, Expr):
313 beta = PrimValue(beta)
314
315 return _ffi_api.hamming_window(window_size, periodic, alpha, beta, dtype)
316
317
318def tril(x: Expr, k: int | PrimExpr | Expr = 0) -> Expr:

Callers

nothing calls this directly

Calls 1

PrimValueClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…