|
9 | 9 | from ..runtime.cache import get_cache_manager, get_dump_manager, get_override_manager |
10 | 10 | from ..runtime.driver import driver |
11 | 11 | from ..tools.disasm import get_sass, get_spvdis |
12 | | -from .._utils import classproperty |
13 | 12 | # TODO: this shouldn't be here |
14 | 13 | from .code_generator import ast_to_ttir |
15 | 14 | from pathlib import Path |
@@ -432,24 +431,6 @@ def __missing__(self, key): |
432 | 431 |
|
433 | 432 | class CompiledKernel: |
434 | 433 |
|
435 | | - # FIXME: remove launch_enter_hook/launch_exit_hook properties |
436 | | - # when pytorch has a compatible layer for the new API. |
437 | | - @classproperty |
438 | | - def launch_enter_hook(cls): |
439 | | - return knobs.runtime.launch_enter_hook |
440 | | - |
441 | | - @launch_enter_hook.setter |
442 | | - def launch_enter_hook(cls, value): |
443 | | - knobs.runtime.launch_enter_hook = value |
444 | | - |
445 | | - @classproperty |
446 | | - def launch_exit_hook(cls): |
447 | | - return knobs.runtime.launch_exit_hook |
448 | | - |
449 | | - @launch_exit_hook.setter |
450 | | - def launch_exit_hook(cls, value): |
451 | | - knobs.runtime.launch_exit_hook = value |
452 | | - |
453 | 434 | def __init__(self, src, metadata_group, hash): |
454 | 435 | from collections import namedtuple |
455 | 436 | metadata_path = next((Path(p) for c, p in metadata_group.items() if c.endswith(".json"))) |
|
0 commit comments