hasktorch-indef-0.0.1.0: Core Hasktorch abstractions wrapping FFI bindings

Copyright(c) Sam Stites 2017
LicenseBSD3
Maintainersam@stites.io
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Torch.Indef.Dynamic.Tensor.Masked

Description

Operations using a mask tensor to filter which elements will be used.

Synopsis

Documentation

maskedFill_ Source #

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

_maskedCopy Source #

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.

_maskedSelect Source #

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.