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)
| 281 | |
| 282 | |
| 283 | def 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 | |
| 318 | def tril(x: Expr, k: int | PrimExpr | Expr = 0) -> Expr: |
nothing calls this directly
no test coverage detected
searching dependent graphs…