You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _sources/deeplearning_operators/elementwise.md.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ def elementwise_add(
89
89
In the compilation process above, a fixed shape was used. However, in practical usage, we often want the kernel to support dynamic shapes. So, how can we compile a kernel in TileLang to handle dynamic shapes? In TileLang, we can replace the target size with a dynamic symbolic value, making the dimension dynamic. The following example illustrates this:
90
90
91
91
```python
92
-
program = elementwise_add(T.symbolic("N"), threads=256, dtype="bfloat16")
92
+
program = elementwise_add(T.dynamic("N"), threads=256, dtype="bfloat16")
0 commit comments