Download venv/lib/python3.10/site-packages/bitblas/builder/wrapper/base.py from Matt300209/eval_venv: direct link, hf CLI and curl.
- Browser
- Download file 479 Bytes
-
https://huggingface.co/Matt300209/eval_venv/resolve/main/venv/lib/python3.10/site-packages/bitblas/builder/wrapper/base.py
- Command line
-
hf download hf://Matt300209/eval_venv/venv/lib/python3.10/site-packages/bitblas/builder/wrapper/base.py
-
curl -L -o base.py https://huggingface.co/Matt300209/eval_venv/resolve/main/venv/lib/python3.10/site-packages/bitblas/builder/wrapper/base.py
479 Bytes
| # Copyright (c) Microsoft Corporation. | |
| # Licensed under the MIT License. | |
| from abc import ABC, abstractmethod | |
| PREDEF_ARRTIBUTE_SET_DYNAMIC_MEMORY = """ | |
| cudaFuncSetAttribute({}, cudaFuncAttributeMaxDynamicSharedMemorySize, {}); | |
| """ | |
| PREDEF_INIT_FUNC = """ | |
| extern "C" void init() {{ | |
| {} | |
| }} | |
| """ | |
| PREDEF_HOST_FUNC = """ | |
| extern "C" void call({}) {{ | |
| {} | |
| }} | |
| """ | |
| class BaseWrapper(ABC): | |
| def wrap(self, *args, **kwargs): | |
| raise NotImplementedError | |