Skip to content

Commit 1f8644c

Browse files
committed
fix ci
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 06889c8 commit 1f8644c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python/tutorials/05-layer-norm.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434
import triton
3535
import triton.language as tl
3636

37-
DEVICE = triton.runtime.driver.active.get_current_target().backend
38-
39-
4037
try:
4138
# This is https://github.com/NVIDIA/apex, NOT the apex on PyPi, so it
4239
# should not be added to extras_require in setup.py.
@@ -45,6 +42,8 @@
4542
except ModuleNotFoundError:
4643
HAS_APEX = False
4744

45+
DEVICE = triton.runtime.driver.active.get_current_target().backend
46+
4847

4948
@triton.jit
5049
def _layer_norm_fwd_fused(

0 commit comments

Comments
 (0)