|
9 | 9 | from .aampi import aampi # noqa: F401 |
10 | 10 | from .chains import atsc, allc # noqa: F401 |
11 | 11 | from .floss import floss, fluss # noqa: F401 |
12 | | -from .ostinato import ostinato # noqa: F401 |
| 12 | +from .ostinato import ostinato, ostinatoed # noqa: F401 |
| 13 | +from .aamp_ostinato import aamp_ostinato, aamp_ostinatoed # noqa: F401 |
13 | 14 | from .scrump import scrump # noqa: F401 |
14 | 15 | from .stumpi import stumpi # noqa: F401 |
15 | 16 | from .mpdist import mpdist, mpdisted # noqa: F401 |
|
19 | 20 | if cuda.is_available(): |
20 | 21 | from .gpu_stump import gpu_stump # noqa: F401 |
21 | 22 | from .gpu_aamp import gpu_aamp # noqa: F401 |
| 23 | + from .gpu_ostinato import gpu_ostinato # noqa: F401 |
| 24 | + from .gpu_aamp_ostinato import gpu_aamp_ostinato # noqa: F401 |
22 | 25 | from .gpu_mpdist import gpu_mpdist # noqa: F401 |
23 | 26 | from .gpu_aampdist import gpu_aampdist # noqa: F401 |
24 | 27 | else: # pragma: no cover |
25 | 28 | from .core import _gpu_stump_driver_not_found as gpu_stump # noqa: F401 |
26 | 29 | from .core import _gpu_aamp_driver_not_found as gpu_aamp # noqa: F401 |
| 30 | + from .core import _gpu_ostinato_driver_not_found as gpu_ostinato # noqa: F401 |
| 31 | + from .core import ( |
| 32 | + _gpu_aamp_ostinato_driver_not_found as gpu_aamp_ostinato, |
| 33 | + ) # noqa: F401 |
27 | 34 | from .core import _gpu_mpdist_driver_not_found as gpu_mpdist # noqa: F401 |
28 | 35 | from .core import _gpu_aampdist_driver_not_found as gpu_aampdist # noqa: F401 |
29 | 36 | import ast |
|
59 | 66 | if fd.name == "gpu_aamp": |
60 | 67 | gpu_aamp.__doc__ = ast.get_docstring(fd) |
61 | 68 |
|
| 69 | + # Fix GPU-OSTINATO Docs |
| 70 | + gpu_ostinato.__doc__ = "" |
| 71 | + filepath = pathlib.Path(__file__).parent / "gpu_ostinato.py" |
| 72 | + |
| 73 | + file_contents = "" |
| 74 | + with open(filepath, encoding="utf8") as f: |
| 75 | + file_contents = f.read() |
| 76 | + module = ast.parse(file_contents) |
| 77 | + function_definitions = [ |
| 78 | + node for node in module.body if isinstance(node, ast.FunctionDef) |
| 79 | + ] |
| 80 | + for fd in function_definitions: |
| 81 | + if fd.name == "gpu_ostinato": |
| 82 | + gpu_ostinato.__doc__ = ast.get_docstring(fd) |
| 83 | + |
| 84 | + # Fix GPU-AAMP-OSTINATO Docs |
| 85 | + gpu_aamp_ostinato.__doc__ = "" |
| 86 | + filepath = pathlib.Path(__file__).parent / "gpu_aamp_ostinato.py" |
| 87 | + |
| 88 | + file_contents = "" |
| 89 | + with open(filepath, encoding="utf8") as f: |
| 90 | + file_contents = f.read() |
| 91 | + module = ast.parse(file_contents) |
| 92 | + function_definitions = [ |
| 93 | + node for node in module.body if isinstance(node, ast.FunctionDef) |
| 94 | + ] |
| 95 | + for fd in function_definitions: |
| 96 | + if fd.name == "gpu_aamp_ostinato": |
| 97 | + gpu_aamp_ostinato.__doc__ = ast.get_docstring(fd) |
| 98 | + |
62 | 99 | # Fix GPU-MPDIST Docs |
63 | 100 | gpu_mpdist.__doc__ = "" |
64 | 101 | filepath = pathlib.Path(__file__).parent / "gpu_mpdist.py" |
|
0 commit comments