From 263f807285c93272abb0c0352be6f8553f01a373 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 21 Sep 2023 16:03:16 -0700 Subject: Update a1-02-slangpy.md (#3228) --- docs/user-guide/a1-02-slangpy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') 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` 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] -- cgit v1.2.3