| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
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
- data DLayer
- = DConv2D
- | DDense
- | DDropout
- | DFlatten
- | DLSTM
- | DMaxPooling
- | DRelu
- | DActivation
- data CNetwork
- data JavaScript = JavaScript
- data Python = Python
- class Generator l
- generate :: Generator l => l -> CNetwork -> Text
- generateFile :: Generator l => l -> CNetwork -> Text
Documentation
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.
Constructors
| DConv2D | |
| DDense | |
| DDropout | |
| DFlatten | |
| DLSTM | |
| DMaxPooling | |
| DRelu | |
| DActivation |
Defines the
data JavaScript Source #
Support for JavaScript compilation
Constructors
| JavaScript |
Instances
| Show JavaScript Source # | |
Defined in TensorSafe.Compile.Expr Methods showsPrec :: Int -> JavaScript -> ShowS # show :: JavaScript -> String # showList :: [JavaScript] -> ShowS # | |
| Generator JavaScript Source # | |
Defined in TensorSafe.Compile.Expr Methods generate :: JavaScript -> CNetwork -> Text Source # generateFile :: JavaScript -> CNetwork -> Text Source # | |
Support for Python compilation
Constructors
| Python |
Class that defines which languages are supported for CNetworks generation to text
Minimal complete definition
Instances
| Generator Python Source # | |
| Generator JavaScript Source # | |
Defined in TensorSafe.Compile.Expr Methods generate :: JavaScript -> CNetwork -> Text Source # generateFile :: JavaScript -> CNetwork -> Text Source # | |