No articles match
Efficiency12 days ago
Eager vs. JIT | CUDA | Writing GPU-friendly code | Data types | BLAS / LAPACK | Compilation cost | Padding inputs to avoid recompilation | Asynchronous execution | Memory | Donation | Eager-mode subset-assignment always copies
Adding a Primitive22 days ago
Adding a Primitive: Practical Example | Step 1: Define the Primitive | Special case: primitives with 0 dynamic inputs | Shortcut helpers for common shapes | Step 2: Add the StableHLO Rule | Step 3: Add the Reverse Rule | Optional: alternative-forward rule | Optional: a quickr rule | Step 4: Verify the Registration | Step 5: Add an nv_ API Function | Using Your Primitive | Contributing to the Package | File Organization | Testing | Higher-Order Primitives
Gaussian Process22 days ago
Kernel | Joint Distribution | Posterior Predictive Distribution | Marginal Likelihood | Optimization | Results | Convergence with More Data | Further Reading
Logistic Regression22 days ago
Problem | Data | Model | Training
Metropolis-Hastings22 days ago
The Banana Distribution | Metropolis-Hastings Algorithm | Running the Sampler | Inspecting the Results
Subsetting22 days ago
Subsetting 1D arrays | Subsetting higher-dimensional arrays | Out-of-bounds Handling | Updating Subsets | Duplicate Indices | Copying Behavior
Extending the API24 days ago
Pure Functions | Consistent Input and Output Types | Arbitrary Devices | Static Arguments to Enable Input Checks
FAQ1 months ago
Why is my function slow? | Why does timing my function show suspiciously fast results? | How do I control the number of threads used by XLA?
Random Number Generation1 months ago
Internals1 months ago
Transforming Code | Tracing R Functions into Graphs | Transforming Graphs into other Graphs | Lowering a Graph | The User Interface | jit() | gradient() | More Internals | Constant Handling | Device Inference in jit() | Nested Inputs and Outputs | Dichotomy of anvl functions
JIT Deep Dive1 months ago
How jit() works | The compilation cache | Tracing | The Tracing Contract | R loops are unrolled | R if statements pick one branch | Closed-over values become constants | Side effects only fire during tracing | Other jit() arguments | Donating inputs | Device placement
Get Started1 months ago
The AnvlArray | Transforming AnvlArrays | Just In Time Compilation | Automatic Differentiation (AD) | Control Flow
Installation1 months ago
System Dependencies | CPU Installation | GPU Installation | Docker | Available Images | Tags
Static Shape Restriction1 months ago
The masking pattern | Masked sum | Masked mean | Subset assignment
Primitives Reference2 months ago
Type Promotion2 months ago
Type Promotion Rules | Literals as Ambiguous Types | Creating Tensors with Different Ambiguity | Propagating Ambiguity