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.Static.Tensor.Copy

Description

Functions to copy (and cast) tensors into different types. This is a pure module.

Synopsis

Documentation

copy :: Tensor d -> Tensor d Source #

copy a tensor

copyByte :: Tensor d -> ByteTensor d Source #

copy a tensor to a byte tensor. *Use at your own discresion*

copyChar :: Tensor d -> CharTensor d Source #

copy a tensor to a char tensor. *Use at your own discresion*

copyShort :: Tensor d -> ShortTensor d Source #

copy a tensor to a short tensor. *Use at your own discresion*

copyInt :: Tensor d -> IntTensor d Source #

copy a tensor to a int tensor. *Use at your own discresion*

copyLong :: Tensor d -> LongTensor d Source #

copy a tensor to a long tensor. *Use at your own discresion*

copyFloat :: Tensor d -> FloatTensor d Source #

copy a tensor to a float tensor. *Use at your own discresion*

copyDouble :: Tensor d -> DoubleTensor d Source #

copy a tensor to a double tensor. *Use at your own discresion*