Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
module Torch.Data
module Torch.GraduallyTyped.Prelude
class HasGrad parameters where Source #
grad :: Loss parameters -> parameters -> Gradients parameters Source #
calculate gradients of a zero-dimensional tensor with respect to a list of independent tensor parameters
Instances
HasGrad (Tensor ('Gradient 'WithGradient) layout device dataType shape) Source # | |
Defined in Torch.GraduallyTyped.Autograd type Gradients (Tensor ('Gradient 'WithGradient) layout device dataType shape) Source # type Loss (Tensor ('Gradient 'WithGradient) layout device dataType shape) Source # grad :: Loss (Tensor ('Gradient 'WithGradient) layout device dataType shape) -> Tensor ('Gradient 'WithGradient) layout device dataType shape -> Gradients (Tensor ('Gradient 'WithGradient) layout device dataType shape) Source # |
module Torch.GraduallyTyped.NN
module Torch.GraduallyTyped.Optim
module Torch.GraduallyTyped.Random
module Torch.GraduallyTyped.Tensor
module Torch.GraduallyTyped.Device
module Torch.GraduallyTyped.Index
module Torch.GraduallyTyped.Shape
module Torch.GraduallyTyped.DType
module Torch.GraduallyTyped.Layout
module Torch.GraduallyTyped.Scalar
module Torch.GraduallyTyped.Unify