Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype IndependentTensor = IndependentTensor {}
- grad :: Tensor -> [IndependentTensor] -> [Tensor]
- requiresGrad :: Tensor -> Bool
- setRequiresGrad :: Bool -> Tensor -> Tensor
- makeIndependent :: Tensor -> IO IndependentTensor
- makeIndependentWithRequiresGrad :: Tensor -> Bool -> IO IndependentTensor
Documentation
newtype IndependentTensor Source #
Note: to create an IndependentTensor
use makeIndependent
;
| otherwise, Torch will complain the parameter does not require a gradient.
Instances
Generic IndependentTensor Source # | |
Defined in Torch.Autograd from :: IndependentTensor -> Rep IndependentTensor x Source # to :: Rep IndependentTensor x -> IndependentTensor Source # | |
Show IndependentTensor Source # | |
Defined in Torch.Autograd | |
Parameterized Parameter Source # | |
Defined in Torch.NN | |
type Rep IndependentTensor Source # | |
Defined in Torch.Autograd type Rep IndependentTensor = D1 ('MetaData "IndependentTensor" "Torch.Autograd" "hasktorch-0.2.0.0-F6yFRaDiRF49lpq95SVuR8" 'True) (C1 ('MetaCons "IndependentTensor" 'PrefixI 'True) (S1 ('MetaSel ('Just "toDependent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Tensor))) |
requiresGrad :: Tensor -> Bool Source #