Documentation
¶
Overview ¶
Package testgrad provides function to test autograd.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
type Func struct { // GradOf declares the function (which must be named `F`) to compute the gradient of. GradOf string // Want stores the source code of the expected gradient of the function Want string // GradImportName is the name of the import of the grad package. // If empty, then the default import name is used. GradImportName string // Err is the substring expected if the compiler returns an error. Err string }
Func tests the computation of the gradient of a function.
Click to show internal directories.
Click to hide internal directories.