tensor-safe-0.1.0.1: Create valid deep neural network architectures

Safe HaskellNone
LanguageHaskell2010

TensorSafe.Compile.Expr

Description

This module describes the expression structure of a INetwork instance. -- The INetwork can be structured into a Data structure called CNetwork, with which later -- to compilation external languages can be done.

Synopsis

Documentation

data DLayer Source #

Auxiliary data representation of Layers IMPORTANT: If you add new Layers definitions to Layers, you should add the corresponding data structure here for the same layer.

Instances
Show DLayer Source # 
Instance details

Defined in TensorSafe.Compile.Expr

data JavaScript Source #

Support for JavaScript compilation

Constructors

JavaScript 

data Python Source #

Support for Python compilation

Constructors

Python 
Instances
Show Python Source # 
Instance details

Defined in TensorSafe.Compile.Expr

Generator Python Source # 
Instance details

Defined in TensorSafe.Compile.Expr

class Generator l Source #

Class that defines which languages are supported for CNetworks generation to text

Minimal complete definition

generate, generateFile

generate :: Generator l => l -> CNetwork -> Text Source #

Adds supports for a language. Generates a CNetwork to Text

generateFile :: Generator l => l -> CNetwork -> Text Source #

Similar to generate, but also adds necessary header and module lines of text so as to have the CNetwork compiled at a separate file.