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.Mode

Description

 
Synopsis

Documentation

_mode Source #

Arguments

:: (Dynamic, IndexDynamic) 
-> Dynamic 
-> Word

dimension to operate over

-> Maybe KeepDim 
-> IO () 

Mutate the tuple of a tensor and index tensor to contain the most frequent element in the specified dimension.

FIXME: if KeepDim is False, we need to return Nothing for the index tensor -- otherwise bad things may happen.