Commit 59aeb6b
authored
[Gluon] Require warp_specialize default_args and worker_args be tuples (#8368)
I'm not a fan of using `isinstance` here as it leads to an
inconsistency. Say we want to pass a single argument `x` that happens to
be a tuple of tensors, then that has to be passed as `(x,)` or otherwise
the tuple will be interpreted as a list of arguments to pass to the
worker function.
The original PR (#8269) justified this as improving the error message,
so I also add a validation check with a better error message if you
forget to pass a tuple.1 parent 1888f81 commit 59aeb6b
File tree
2 files changed
+4
-4
lines changed- python/triton/experimental/gluon/language
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | 512 | | |
517 | 513 | | |
518 | 514 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
423 | 427 | | |
424 | 428 | | |
425 | 429 | | |
| |||
0 commit comments