| Copyright | (c) Sam Stites 2017 |
|---|---|
| License | BSD3 |
| Maintainer | sam@stites.io |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Torch.Indef.Dynamic.Tensor.Masked
Description
Operations using a mask tensor to filter which elements will be used.
Synopsis
- maskedFill_ :: Dynamic -> MaskDynamic -> HsReal -> IO ()
- _maskedCopy :: Dynamic -> MaskDynamic -> Dynamic -> IO ()
- _maskedSelect :: Dynamic -> Dynamic -> MaskDynamic -> IO ()
Documentation
Arguments
| :: Dynamic | source tensor to mutate, inplace |
| -> MaskDynamic | mask to fill |
| -> HsReal | value to fill |
| -> IO () |
fill a dynamic tensor with a value, filtered by a boolean mask tensor
Arguments
| :: Dynamic | return tensor to mutate, inplace |
| -> MaskDynamic | mask to copy with |
| -> Dynamic | source tensor to copy from |
| -> IO () |
copy a dynamic tensor with a value, filtered by a boolean mask tensor
C-Style: In the classic Torch C-style, the first argument is treated as the return type and is mutated in-place.
Arguments
| :: Dynamic | return tensor to mutate, inplace |
| -> Dynamic | source tensor to select from |
| -> MaskDynamic | mask to select with |
| -> IO () |
select a dynamic tensor with a value, filtered by a boolean mask tensor
C-Style: In the classic Torch C-style, the first argument is treated as the return type and is mutated in-place.