File size: 603 Bytes
f80539e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ---
library_name: kernels
license: apache-2.0
---
This is a tiny Kernel Hub repro for C++ standard-library runtime crashes in packaged kernels.
It exposes a CPU op that runs:
- `std::regex` include parsing
- `std::ostringstream`/`std::hex` hash formatting
- a simple ReLU copy so the op has a normal tensor path
## How to use
```python
from kernels import get_kernel
kernel_module = get_kernel("adarshxs/stdlib-repro", backend="cpu", trust_remote_code=True)
out, digest = kernel_module.relu_and_probe(x, iters=1000)
```
## Available functions
- `DEFAULT_CODE`
- `probe_stdlib`
- `relu_and_probe`
|