hasktorch: Haskell bindings to libtorch, supporting both typed and untyped tensors.

[ bsd3, codegen, library ] [ Propose Tags ] [ Report a vulnerability ]

Hasktorch is a library for tensors and neural networks in Haskell. It is an independent open source community project which leverages the core C++ libraries shared by PyTorch.

Modules

[Last Documentation]

  • Torch
    • Torch.Autograd
    • Torch.Backend
    • Torch.Cast
    • Torch.DType
    • Torch.Data
      • Torch.Data.CsvDatastream
      • Torch.Data.Dataset
      • Torch.Data.Internal
      • Torch.Data.Pipeline
      • Torch.Data.StreamedPipeline
      • Torch.Data.Utils
    • Torch.Device
    • Torch.Dimname
    • Distributions
      • Torch.Distributions.Bernoulli
      • Torch.Distributions.Categorical
      • Torch.Distributions.Constraints
      • Torch.Distributions.Distribution
    • Torch.Functional
      • Torch.Functional.Internal
    • Torch.HList
    • Torch.Index
    • Torch.Initializers
    • Torch.Jit
    • Torch.Layout
    • Torch.Lens
    • Torch.NN
      • Recurrent
        • Cell
          • Torch.NN.Recurrent.Cell.Elman
          • Torch.NN.Recurrent.Cell.GRU
          • Torch.NN.Recurrent.Cell.LSTM
    • Torch.Optim
      • Torch.Optim.CppOptim
    • Torch.Random
    • Torch.Scalar
    • Torch.Script
    • Torch.Serialize
    • Torch.Tensor
    • Torch.TensorFactories
    • Torch.TensorOptions
    • Torch.Tutorial
    • Torch.Typed
      • Torch.Typed.Autograd
      • Torch.Typed.Auxiliary
      • Torch.Typed.DType
      • Torch.Typed.Device
      • Torch.Typed.Factories
      • Torch.Typed.Functional
      • Torch.Typed.Lens
      • Torch.Typed.NN
        • Torch.Typed.NN.Convolution
        • Torch.Typed.NN.DataParallel
        • Torch.Typed.NN.Dropout
        • Torch.Typed.NN.Linear
        • Torch.Typed.NN.Normalization
        • Torch.Typed.NN.Recurrent
          • Torch.Typed.NN.Recurrent.Auxiliary
          • Cell
            • Torch.Typed.NN.Recurrent.Cell.GRU
            • Torch.Typed.NN.Recurrent.Cell.LSTM
          • Torch.Typed.NN.Recurrent.GRU
          • Torch.Typed.NN.Recurrent.LSTM
        • Torch.Typed.NN.Sparse
        • Torch.Typed.NN.Transformer
      • Torch.Typed.NamedTensor
      • Torch.Typed.Optim
        • Torch.Typed.Optim.CppOptim
      • Torch.Typed.Parameter
      • Torch.Typed.Serialize
      • Torch.Typed.Tensor
      • Torch.Typed.VLTensor
      • Torch.Typed.Vision
    • Torch.Vision

Flags

Manual Flags

NameDescriptionDefault
disable-doctest

Disable doctest. ToDo: This flag is to avoid relocation-error of ghci for macos.

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.0.1.0, 0.2.0.0, 0.2.0.1
Dependencies array (>=0.5.5 && <0.6), async (>=2.2.5 && <2.3), base (>=4.7 && <5), bytestring (>=0.11.5 && <0.12), cassava (>=0.5.3 && <0.6), constraints (>=0.14.2 && <0.15), containers (>=0.6.7 && <0.7), data-default-class (>=0.2.0 && <0.3), finite-typelits (>=0.2.1 && <0.3), foldl (>=1.4.17 && <1.5), ghc-typelits-extra (>=0.4.7 && <0.5), ghc-typelits-knownnat (>=0.7.12 && <0.8), ghc-typelits-natnormalise (>=0.7.10 && <0.8), half (>=0.3.2 && <0.4), inline-c (>=0.9.1 && <0.10), JuicyPixels (>=3.3.9 && <3.4), lens-family-core (>=2.1.3 && <2.2), libtorch-ffi (>=2.0 && <2.1), libtorch-ffi-helper (>=2.0 && <2.1), lifted-async (>=0.10.2 && <0.11), megaparsec (>=9.7.0 && <9.8), monad-control (>=1.0.3 && <1.1), mtl (>=2.3.1 && <2.4), pipes (>=4.3.16 && <4.4), pipes-bytestring (>=2.1.7 && <2.2), pipes-concurrency (>=2.0.14 && <2.1), pipes-csv (>=1.4.3 && <1.5), pipes-group (>=1.0.12 && <1.1), pipes-safe (>=2.3.5 && <2.4), random (>=1.2.1 && <1.3), reflection (>=2.1.9 && <2.2), safe-exceptions (>=0.1.7 && <0.2), stm (>=2.5.1 && <2.6), template-haskell (>=2.20.0 && <2.21), transformers-base (>=0.4.6 && <0.5), vector (>=0.13.2 && <0.14), vector-sized (>=1.6.1 && <1.7), zlib (>=0.7.1 && <0.8) [details]
License BSD-3-Clause
Copyright 2019 Austin Huang
Author Hasktorch Contributor Team
Maintainer hasktorch@gmail.com
Category Codegen
Home page https://github.com/hasktorch/hasktorch#readme
Uploaded by junjihashimoto at 2024-12-13T05:33:22Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 856 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2024-12-13 [all 2 reports]