From 79af29af91fb9601886d539526a4ec87bca3d74c Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 27 Oct 2022 13:08:30 -0700 Subject: Rename `[__custom_jvp]` -> `[ForwardDerivative]`. (#2473) * Rename `[__custom_jvp]` -> `[ForwardDerivative]`. * Rename the classes. * More renaming. Co-authored-by: Yong He --- source/slang/diff.meta.slang | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/slang/diff.meta.slang') 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)] + [ForwardDerivative(d_exp)] T exp(T x); __generic @@ -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)] + [ForwardDerivative(d_sin)] T sin(T x); __generic @@ -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)] + [ForwardDerivative(d_cos)] T cos(T x); __generic -- cgit v1.2.3