slang-python icon indicating copy to clipboard operation
slang-python copied to clipboard

A Python package for calling Slang modules.

Results 6 slang-python issues
Sort by recently updated
recently updated
newest added

I am getting an error when I am running **python mlp_image_fit.py** (see bellow) **To recreate**: build docker: ``` docker build -t slang-python . ``` with Dockerfile: ``` FROM nvcr.io/nvidia/pytorch:23.10-py3 WORKDIR...

Hello, I was wondering if the `gradient_output` in [the BRDF example](https://github.com/shader-slang/slang-python/blob/main/examples/brdf-appearance-optimize-example/slangpy.ipynb) perhaps needs a `zero_()` in the learning inner loop (ie. before calling `m.brdf_loss.bwd`) ? Similar to calling `optimizer.zero_grad()` in...

Would it be useful in the slang framework to compute determinants of matrices greater than 4x4 ? In the current code base the determinant function is specialized only upto 4x4...

Windows 11 Python 3.12.2 with installer Slangpy 1.1.22 I am running into an issue where slang's cache is frequently pulling in stale code, for example throwing up warnings for code...

Windows 11 Python 3.12.2 with installer Slangpy 1.1.22 When attempting to run the example square.slang kernel, a compilation error: ``` LINK : fatal error LNK1104: cannot open file 'python312.lib' ninja:...

Hello! By mistake, I added `[Differentiable]` to the `square` [sample](https://shader-slang.com/slang/user-guide/a1-02-slangpy.html#getting-started-with-slangpy) but I didn't change `TensorView` to `DiffTensorView`. The result was a `square.fwd()` that simply calculates `square()`. I was wondering if...