hasktorch-0.2.0.0: Functional differentiable programming in Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Torch.Typed.NamedTensor

Documentation

class NamedTensorLike a where Source #

Associated Types

type ToNestedList a :: Type Source #

Instances

Instances details
NamedTensorLike Bool Source # 
Instance details

Defined in Torch.Typed.NamedTensor

Associated Types

type ToNestedList Bool Source #

NamedTensorLike Double Source # 
Instance details

Defined in Torch.Typed.NamedTensor

Associated Types

type ToNestedList Double Source #

NamedTensorLike Float Source # 
Instance details

Defined in Torch.Typed.NamedTensor

Associated Types

type ToNestedList Float Source #

NamedTensorLike Int Source # 
Instance details

Defined in Torch.Typed.NamedTensor

Associated Types

type ToNestedList Int Source #

(Generic (g a), Default (g a), HasTypes (g a) a, KnownNat (ToNat g), TensorLike (ToNestedList a), NamedTensorLike a) => NamedTensorLike (g a) Source # 
Instance details

Defined in Torch.Typed.NamedTensor

Associated Types

type ToNestedList (g a) Source #

Methods

toNestedList :: g a -> ToNestedList (g a) Source #

asNamedTensor :: g a -> NamedTensor '('CPU, 0) (ToDType (g a)) (ToShape (g a)) Source #

fromNestedList :: ToNestedList (g a) -> g a Source #

fromNamedTensor :: NamedTensor '('CPU, 0) (ToDType (g a)) (ToShape (g a)) -> g a Source #

(KnownNat n, TensorLike (ToNestedList a), NamedTensorLike a) => NamedTensorLike (Vector n a) Source # 
Instance details

Defined in Torch.Typed.NamedTensor

Associated Types

type ToNestedList (Vector n a) Source #

(Coercible (vec n a) (Vector n a), KnownNat n, TensorLike (ToNestedList a), NamedTensorLike a) => NamedTensorLike (vec n a) Source # 
Instance details

Defined in Torch.Typed.NamedTensor

Associated Types

type ToNestedList (vec n a) Source #

Methods

toNestedList :: vec n a -> ToNestedList (vec n a) Source #

asNamedTensor :: vec n a -> NamedTensor '('CPU, 0) (ToDType (vec n a)) (ToShape (vec n a)) Source #

fromNestedList :: ToNestedList (vec n a) -> vec n a Source #

fromNamedTensor :: NamedTensor '('CPU, 0) (ToDType (vec n a)) (ToShape (vec n a)) -> vec n a Source #