Skip to content

Commit 7d95373

Browse files
committed
flake8 & black & isort reformatting
1 parent 0cbb079 commit 7d95373

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

python/ctranslate2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
)
4343
from ctranslate2.extensions import register_extensions
4444
from ctranslate2.logging import get_log_level, set_log_level
45-
from ctranslate2.profiling import init_profiler, dump_profiler
45+
from ctranslate2.profiling import dump_profiler, init_profiler
4646

4747
register_extensions()
4848
del register_extensions

python/ctranslate2/profiling.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
from ctranslate2 import _ext, Device
21
import sys
32

4-
def init_profiler(device = Device.cpu, num_threads = 1):
3+
from ctranslate2 import Device, _ext
4+
5+
6+
def init_profiler(device=Device.cpu, num_threads=1):
57
_ext.init_profiling(device, num_threads)
68

79

0 commit comments

Comments
 (0)