Safe Haskell | None |
---|---|
Language | Haskell2010 |
Neural Network Definition and Training
Synopsis
- data OpNetSpec = OpNetSpec {}
- data OpNet = OpNet {}
- forward :: OpNet -> Tensor -> Tensor
- noGrad :: Parameterized f => f -> IO f
- saveCheckPoint :: FilePath -> OpNet -> Adam -> IO ()
- loadCheckPoint :: FilePath -> OpNetSpec -> Int -> IO (OpNet, Adam)
- traceModel :: Device -> PDK -> Int -> [String] -> [String] -> (Tensor -> Tensor) -> IO ScriptModule
- unTraceModel :: ScriptModule -> Tensor -> Tensor
- saveInferenceModel :: FilePath -> ScriptModule -> IO ()
- loadInferenceModel :: FilePath -> IO ScriptModule
Documentation
Neural Network Specification
Network Architecture
Instances
loadCheckPoint :: FilePath -> OpNetSpec -> Int -> IO (OpNet, Adam) Source #
Load a Saved Model and Optimizer CheckPoint
traceModel :: Device -> PDK -> Int -> [String] -> [String] -> (Tensor -> Tensor) -> IO ScriptModule Source #
Trace and Return a Script Module
unTraceModel :: ScriptModule -> Tensor -> Tensor Source #
Trace to Function
saveInferenceModel :: FilePath -> ScriptModule -> IO () Source #
Save a Traced ScriptModule
loadInferenceModel :: FilePath -> IO ScriptModule Source #
Load a Traced ScriptModule