GradResult
인터페이스, IR 분류
What grad returns: the module with the derivative function added, and its name.
import type { GradResult } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
interface GradResult { readonly module: ModuleDecl; readonly name: string;}인스턴스 속성
module읽기 전용ModuleDeclThe input module plus the derivative function and the jvp helpers it calls.
name읽기 전용stringThe name of the derivative function in
GradResult.module.
함께 보기
소스
src/core/passes/grad.ts, 52행, 커밋 c66579bf 기준