GradOptions
인터페이스, IR 분류
Options for grad.
import type { GradOptions } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
interface GradOptions { readonly name?: string; readonly direction?: readonly number[];}인스턴스 속성
name선택 사항읽기 전용stringThe name of the generated function. Defaults to
<fn>_d_<param>.direction선택 사항읽기 전용readonly number[]The direction to differentiate along when the parameter is a vector: the generated function returns the directional derivative, the Jacobian times this vector. Required for a vector parameter, refused for a scalar one.
함께 보기
소스
src/core/passes/grad.ts, 40행, 커밋 c66579bf 기준