| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Torch.Autograd
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.
Constructors
| IndependentTensor | |
Fields | |
Instances
requiresGrad :: Tensor -> Bool Source #