mxnet-0.1.0.1: MXNet interface in Haskell.

Copyright(c) 2016 Tao He
LicenseMIT
Maintainersighingnow@gmail.com
Safe HaskellSafe
LanguageHaskell2010

MXNet.Core.NDArray

Contents

Description

NDArray module.

Synopsis

Data type definitions

type NDArray = NDArrayHandle Source #

NDArray type alias.

data Context Source #

Context definition.

  • DeviceType

    1. cpu
    2. gpu
    3. cpu_pinned

Functions about NDArray

makeNDArray Source #

Arguments

:: [Int]

size of every dimensions.

-> IO NDArray 

Make a new NDArray with given shape.

getNDArrayShape Source #

Arguments

:: NDArray 
-> IO (Int, [Int])

Dimensions and size of every dimensions.

Get the shape of given NDArray.

Default contexts

defaultContext :: Context Source #

Default context, use the CPU 0 as device.

contextCPU :: Context Source #

Context for CPU 0.

contextGPU :: Context Source #

Context for GPU 0.