We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cbb079 commit 7d95373Copy full SHA for 7d95373
python/ctranslate2/__init__.py
@@ -42,7 +42,7 @@
42
)
43
from ctranslate2.extensions import register_extensions
44
from ctranslate2.logging import get_log_level, set_log_level
45
- from ctranslate2.profiling import init_profiler, dump_profiler
+ from ctranslate2.profiling import dump_profiler, init_profiler
46
47
register_extensions()
48
del register_extensions
python/ctranslate2/profiling.py
@@ -1,7 +1,9 @@
1
-from ctranslate2 import _ext, Device
2
import sys
3
4
-def init_profiler(device = Device.cpu, num_threads = 1):
+from ctranslate2 import Device, _ext
+
5
6
+def init_profiler(device=Device.cpu, num_threads=1):
7
_ext.init_profiling(device, num_threads)
8
9
0 commit comments