gemini-2.5-pro| input-price: 1.25 output-price: 10 max-context-length: 200_000 (cost: $0.04) Β· Anfrage: 2025-07-16T15:42:02.984991
Generated by rs-summarizer Version unbekannt
Abstract:
This presentation by Shannon Woods from NVIDIA introduces Slang, a modern shading language and compiler now governed by the Khronos Group. The talk focuses on Slang's role in enabling "Neural Graphics," the application of machine learning techniques to solve graphics problems. A core feature highlighted is built-in automatic differentiation (autodiff), which dramatically simplifies the development of neural techniques by automatically generating the complex gradient code required for optimization algorithms like gradient descent.
To bridge the gap between the Python-based machine learning ecosystem and the C++ based graphics world, the presentation introduces slang-pie, a Python package. This tool allows developers to seamlessly invoke Slang kernels from Python, passing data from frameworks like PyTorch and NumPy without writing extensive boilerplate code. The concepts are demonstrated with a 2D Gaussian splatting example, showing how a model can be trained to reconstruct an image. The presentation concludes that Slang, coupled with slang-pie, provides an accessible and powerful bridge for developers to integrate neural rendering into their workflows.
Slang: Enabling Neural Graphics and Bridging ML/Graphics Ecosystems
slang-pie: A major challenge is the disconnect between the Python-centric ML ecosystem (PyTorch, TensorFlow) and the C++-centric graphics ecosystem (Vulkan). Slang addresses this with slang-pie, a pip-installable Python package.slang-pie Works: slang-pie acts as a bridge, allowing developers to call Slang kernels directly from Python. It automatically handles the complex data marshalling required to pass PyTorch tensors or NumPy arrays to the GPU, hiding the underlying C++ boilerplate.slang-pie API provides a simple way to invoke the backward differential form of a function (e.g., my_func.bwd(...)) to compute gradients for all input parameters, which are then used to update the model.slang-pie: It is a convenience bridge for running kernels and managing data, not a full rendering framework for building an entire renderer in Python.