Copyright | (c) 2016 Tao He |
---|---|
License | MIT |
Maintainer | sighingnow@gmail.com |
Safe Haskell | Safe |
Language | Haskell2010 |
Interfaces in core module of NNVM.
- type NNUInt = CUInt
- data OpHandle
- data SymbolHandle
- data GraphHandle
- nnAPISetLastError :: String -> IO ()
- nnGetLastError :: IO String
- nnListAllOpNames :: IO (Int, NNUInt, [String])
- nnGetOpHandle :: String -> IO (Int, OpHandle)
- nnListUniqueOps :: IO (Int, NNUInt, [OpHandle])
- nnGetOpInfo :: OpHandle -> IO (Int, String, String, NNUInt, [String], [String], [String], String)
- nnSymbolCreateAtomicSymbol :: OpHandle -> NNUInt -> [String] -> [String] -> IO (Int, SymbolHandle)
- nnSymbolCreateVariable :: String -> IO (Int, SymbolHandle)
- nnSymbolCreateGroup :: NNUInt -> [SymbolHandle] -> IO (Int, SymbolHandle)
- nnAddControlDeps :: SymbolHandle -> SymbolHandle -> IO Int
- nnSymbolFree :: SymbolHandle -> IO Int
- nnSymbolCopy :: SymbolHandle -> IO (Int, SymbolHandle)
- nnSymbolPrint :: SymbolHandle -> IO (Int, String)
- nnSymbolGetAttr :: SymbolHandle -> String -> IO (Int, String, Int)
- nnSymbolSetAttrs :: SymbolHandle -> NNUInt -> [String] -> [String] -> IO Int
- nnSymbolListAttrs :: SymbolHandle -> Int -> IO (Int, NNUInt, [String])
- nnSymbolListInputVariables :: SymbolHandle -> Int -> IO (Int, NNUInt, [SymbolHandle])
- nnSymbolListInputNames :: SymbolHandle -> Int -> IO (Int, NNUInt, [String])
- nnSymbolListOutputNames :: SymbolHandle -> IO (Int, NNUInt, [String])
- nnSymbolGetInternals :: SymbolHandle -> IO (Int, SymbolHandle)
- nnSymbolGetOutput :: SymbolHandle -> NNUInt -> IO (Int, SymbolHandle)
- nnSymbolCompose :: SymbolHandle -> String -> NNUInt -> [String] -> IO (Int, SymbolHandle)
- nnGraphCreate :: SymbolHandle -> IO (Int, GraphHandle)
- nnGraphFree :: GraphHandle -> IO Int
- nnGraphGetSymbol :: GraphHandle -> IO (Int, SymbolHandle)
- nnGraphSetJSONAttr :: GraphHandle -> String -> String -> IO Int
- nnGraphGetJSONAttr :: SymbolHandle -> String -> IO (Int, String, Int)
- nnGraphSetNodeEntryListAttr_ :: GraphHandle -> String -> SymbolHandle -> IO Int
- nnGraphApplyPasses :: GraphHandle -> NNUInt -> [String] -> IO (Int, GraphHandle)
Re-export data type definitions
Handle to a function that takes param and creates symbol.
data SymbolHandle Source #
Handle to a symbol that can be bind as operator.
Re-export functions.
nnAPISetLastError :: String -> IO () Source #
nnGetOpInfo :: OpHandle -> IO (Int, String, String, NNUInt, [String], [String], [String], String) Source #
nnSymbolCreateAtomicSymbol :: OpHandle -> NNUInt -> [String] -> [String] -> IO (Int, SymbolHandle) Source #
nnSymbolCreateVariable :: String -> IO (Int, SymbolHandle) Source #
nnSymbolCreateGroup :: NNUInt -> [SymbolHandle] -> IO (Int, SymbolHandle) Source #
:: SymbolHandle | The symbol to add dependency edges on. |
-> SymbolHandle | The source handles. |
-> IO Int |
nnSymbolFree :: SymbolHandle -> IO Int Source #
nnSymbolCopy :: SymbolHandle -> IO (Int, SymbolHandle) Source #
nnSymbolPrint :: SymbolHandle -> IO (Int, String) Source #
nnSymbolListAttrs :: SymbolHandle -> Int -> IO (Int, NNUInt, [String]) Source #
nnSymbolListInputVariables :: SymbolHandle -> Int -> IO (Int, NNUInt, [SymbolHandle]) Source #
nnSymbolListInputNames :: SymbolHandle -> Int -> IO (Int, NNUInt, [String]) Source #
nnSymbolListOutputNames :: SymbolHandle -> IO (Int, NNUInt, [String]) Source #
nnSymbolGetInternals :: SymbolHandle -> IO (Int, SymbolHandle) Source #
nnSymbolGetOutput :: SymbolHandle -> NNUInt -> IO (Int, SymbolHandle) Source #
nnSymbolCompose :: SymbolHandle -> String -> NNUInt -> [String] -> IO (Int, SymbolHandle) Source #
nnGraphCreate :: SymbolHandle -> IO (Int, GraphHandle) Source #
nnGraphFree :: GraphHandle -> IO Int Source #
:: GraphHandle | the graph handle. |
-> IO (Int, SymbolHandle) |
nnGraphSetJSONAttr :: GraphHandle -> String -> String -> IO Int Source #
nnGraphGetJSONAttr :: SymbolHandle -> String -> IO (Int, String, Int) Source #
nnGraphSetNodeEntryListAttr_ :: GraphHandle -> String -> SymbolHandle -> IO Int Source #
nnGraphApplyPasses :: GraphHandle -> NNUInt -> [String] -> IO (Int, GraphHandle) Source #