Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Oct 9, 2024
1 parent 56c3dbd commit e780b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/lightning/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python

from habana_frameworks.torch import hpu; hpu.init()

import argparse
import os

Expand Down Expand Up @@ -55,8 +57,6 @@ def prepare_voir():
return observer, bench_monitor

def main():
from habana_frameworks.torch import hpu; hpu.init()

rank = int(os.getenv("RANK", 0))
world_size = int(os.getenv("WORLD_SIZE", 1))
local_world_size = int(os.getenv("LOCAL_WORLD_SIZE", 1))
Expand Down

0 comments on commit e780b1d

Please sign in to comment.