summaryrefslogtreecommitdiff
path: root/source/slang/diff.meta.slang
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-10-27 13:08:30 -0700
committerGitHub <noreply@github.com>2022-10-27 13:08:30 -0700
commit79af29af91fb9601886d539526a4ec87bca3d74c (patch)
treed92096aff783cf83cd01673f74a91a1b1372d3ef /source/slang/diff.meta.slang
parent8dc9efd256bd211d8c446971f09a7c79e644b110 (diff)
Rename `[__custom_jvp]` -> `[ForwardDerivative]`. (#2473)
* Rename `[__custom_jvp]` -> `[ForwardDerivative]`. * Rename the classes. * More renaming. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/diff.meta.slang')
-rw-r--r--source/slang/diff.meta.slang10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/slang/diff.meta.slang b/source/slang/diff.meta.slang
index ca7c1d3bd..e6ddb1cf6 100644
--- a/source/slang/diff.meta.slang
+++ b/source/slang/diff.meta.slang
@@ -5,9 +5,9 @@
__attributeTarget(FunctionDeclBase)
attribute_syntax [ForwardDifferentiable] : ForwardDifferentiableAttribute;
-// Custom JVP Function reference
+// Custom Forward Derivative Function reference
__attributeTarget(FunctionDeclBase)
-attribute_syntax [__custom_jvp(function)] : CustomJVPAttribute;
+attribute_syntax [ForwardDerivative(function)] : ForwardDerivativeAttribute;
/// Interface to denote types as differentiable.
/// Allows for user-specified differential types as
@@ -167,7 +167,7 @@ namespace dstd
__target_intrinsic(cuda, "$P_exp($0)")
__target_intrinsic(cpp, "$P_exp($0)")
__target_intrinsic(spirv_direct, "12 resultType resultId glsl450 27 _0")
- [__custom_jvp(d_exp<T>)]
+ [ForwardDerivative(d_exp<T>)]
T exp(T x);
__generic<T : IDFloat>
@@ -185,7 +185,7 @@ namespace dstd
__target_intrinsic(cuda, "$P_sin($0)")
__target_intrinsic(cpp, "$P_sin($0)")
__target_intrinsic(spirv_direct, "12 resultType resultId glsl450 13 _0")
- [__custom_jvp(d_sin<T>)]
+ [ForwardDerivative(d_sin<T>)]
T sin(T x);
__generic<T : IDFloat>
@@ -203,7 +203,7 @@ namespace dstd
__target_intrinsic(cuda, "$P_cos($0)")
__target_intrinsic(cpp, "$P_cos($0)")
__target_intrinsic(spirv_direct, "12 resultType resultId glsl450 14 _0")
- [__custom_jvp(d_cos<T>)]
+ [ForwardDerivative(d_cos<T>)]
T cos(T x);
__generic<T : IDFloat>