hasktorch-gradually-typed-0.2.0.0: experimental project for hasktorch
Safe HaskellSafe-Inferred
LanguageHaskell2010

Torch.GraduallyTyped.Tensor.Other

Synopsis

Documentation

triu Source #

Arguments

:: forall gradient layout device dataType shape. Int

diagonal

-> Tensor gradient layout device dataType shape

input

-> Tensor gradient layout device dataType shape

output

triu

tril Source #

Arguments

:: forall gradient layout device dataType shape. Int

diagonal

-> Tensor gradient layout device dataType shape

input

-> Tensor gradient layout device dataType shape

output

tril

maskedFill Source #

Arguments

:: forall gradient layout device dataType shape value gradient' layout' device' dataType' shape' shape'' m. (Scalar value, MonadThrow m, Catch (gradient <+> 'Gradient 'WithoutGradient), Catch (dataType <+> 'DataType 'Bool), shape'' ~ BroadcastShapesF shape shape', Catch shape'') 
=> Tensor gradient layout device dataType shape

mask

-> value

value

-> Tensor gradient' layout' device' dataType' shape'

input

-> m (Tensor gradient' (layout <+> (layout' <+> 'Layout 'Dense)) (device <+> device') dataType' shape'')

output

masked fill