grain ~master (2021-05-15T05:53:16Z)
Dub
Repo
variable
grain
autograd
a helper function to create variable object from slice
auto
variable
(Sl sl, bool requiresGrad)
auto
variable
(
Sl
)
(
Sl
sl
,
bool
requiresGrad
= false
)
if
(
isSlice
!
Sl
)
auto
variable
(T x)
auto
variable
(A a, bool requiresGrad)
Meta
Source
See Implementation
grain
autograd
aliases
DeviceStorage
ElementType
HostStorage
isDevice
functions
gradSlice
iterVariables
length
refIterVariables
to
uninit
uninitVariable
variable
zero_
zeros
structs
BackProp
UntypedVariable
Variable
variables
DimensionCount
isHost
isVariable
a helper function to create variable object from slice