diff options
| author | Yong He <yonghe@outlook.com> | 2023-09-21 16:03:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-21 16:03:16 -0700 |
| commit | 263f807285c93272abb0c0352be6f8553f01a373 (patch) | |
| tree | 4e1a9e528ac1b203b5c6d7901fbe6c98ac933a19 /docs | |
| parent | e31a9671d70c97c89f081d4f30ec0792050fd35c (diff) | |
Update a1-02-slangpy.md (#3228)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/user-guide/a1-02-slangpy.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/user-guide/a1-02-slangpy.md b/docs/user-guide/a1-02-slangpy.md index 04021dd94..0337b4d86 100644 --- a/docs/user-guide/a1-02-slangpy.md +++ b/docs/user-guide/a1-02-slangpy.md @@ -92,7 +92,7 @@ One key point is that the basic `TensorView<T>` objects are not differentiable. Instead, use the `DiffTensorView` type for when you need differentiable tensors. Currently, `DiffTensorView` only supports the `float` dtype variety, and requires the use of `.load(offset)` and `.store(offset, val)` instead of `[]`, although `offset` can be a scalar `uint` or vector `uint2`, `uint3`, etc.. for multi-dimensional indexing. -Here's a barebones example of a differentiable `sqr` that computes the `sin(x)` +Here's a barebones example of a differentiable `sqr` that computes `x*x` ``` C [AutoPyBindCUDA] |
