Deep.Net


ModelInstance<'T>

Namespace: SymTensor
Parent Module: ModelContextTypes

A model with numeric sizes for all size symbols and allocated parameter storage.

Constructors

ConstructorDescription
new(...)
Signature: (context:string * parameters:Map<VarSpecT,ParameterInfo<'T>> * device:IDevice * compileEnv:CompileEnvT) -> ModelInstance<'T>

CompiledName: .ctor

Instance members

Instance memberDescription
CompileEnv
Signature: CompileEnvT

Compile environment.

CompiledName: get_CompileEnv

Device
Signature: IDevice

the device this model instance is stored on

CompiledName: get_Device

Func(expr0, expr1, expr2)
Signature: (expr0:ExprT * expr1:ExprT * expr2:ExprT) -> VarEnvT -> Tensor<'T0> * Tensor<'T1> * Tensor<'T2>
Type parameters: 'T1, 'T2
Func(expr0, expr1, expr2)
Signature: (expr0:ExprT * expr1:ExprT * expr2:ExprT) -> VarEnvT -> Tensor<'T> * Tensor<'T> * Tensor<'T>

Creates a function from the given expressions using the model's ParameterSet and ParameterStorage using the devices default result location.

Func(expr0, expr1)
Signature: (expr0:ExprT * expr1:ExprT) -> VarEnvT -> Tensor<'T0> * Tensor<'T1>
Type parameters: 'T1
Func(expr0, expr1)
Signature: (expr0:ExprT * expr1:ExprT) -> VarEnvT -> Tensor<'T> * Tensor<'T>

Creates a function from the given expressions using the model's ParameterSet and ParameterStorage using the devices default result location.

Func(expr0)
Signature: expr0:ExprT -> VarEnvT -> Tensor<'T>
Func(expr0)
Signature: expr0:ExprT -> VarEnvT -> Tensor<'T0>

Creates a function from the given expression using the model's ParameterSet and ParameterStorage using the devices default result location.

Func(exprs)
Signature: (exprs:ExprT list) -> VarEnvT -> Tensor<'T> list
Func(resultLoc, expr0, expr1, expr2)
Signature: (resultLoc:ITensorDevice * expr0:ExprT * expr1:ExprT * expr2:ExprT) -> VarEnvT -> Tensor<'T> * Tensor<'T> * Tensor<'T>
Func(resultLoc, expr0, expr1, expr2)
Signature: (resultLoc:ITensorDevice * expr0:ExprT * expr1:ExprT * expr2:ExprT) -> VarEnvT -> Tensor<'T0> * Tensor<'T1> * Tensor<'T2>
Type parameters: 'T1, 'T2

Creates a function from the given expressions using the model's ParameterSet and ParameterStorage using the devices default result location.

Func(resultLoc, expr0, expr1)
Signature: (resultLoc:ITensorDevice * expr0:ExprT * expr1:ExprT) -> VarEnvT -> Tensor<'T> * Tensor<'T>
Func(resultLoc, expr0, expr1)
Signature: (resultLoc:ITensorDevice * expr0:ExprT * expr1:ExprT) -> VarEnvT -> Tensor<'T0> * Tensor<'T1>
Type parameters: 'T1

Creates a function from the given expressions using the model's ParameterSet and ParameterStorage using the devices default result location.

Func(resultLoc, expr0)
Signature: (resultLoc:ITensorDevice * expr0:ExprT) -> VarEnvT -> Tensor<'T>
Func(resultLoc, expr0)
Signature: (resultLoc:ITensorDevice * expr0:ExprT) -> VarEnvT -> Tensor<'T0>

Creates a function from the given expression using the model's ParameterSet and ParameterStorage using the specified result location.

Func(resultLoc, exprs)
Signature: (resultLoc:ITensorDevice * exprs:ExprT list) -> VarEnvT -> Tensor<'T> list
InitPar(seed ps)
Signature: seed:int -> ps:VarSpecT -> unit

Initializes the specified paramter value using the initialization function.

InitPars(globalSeed)
Signature: globalSeed:int -> unit

Initializes all parameter values using their respective initialization functions.

[par]
Signature: par:ExprT -> Tensor<'T>

value for a given parameter

CompiledName: set_Item

[()]
Signature: unit -> ExprT

value for a given parameter

CompiledName: get_Item

LoadPars(hdf, prefix)
Signature: (hdf:HDF5 * prefix:string option) -> unit

Load parameter values.

ParameterSet
Signature: ParameterSetT<'T>

ParameterSet of this module's (and all submodules') parameteres

CompiledName: get_ParameterSet

ParameterStorage
Signature: ParameterStorageT<'T>

Parameter values.

CompiledName: get_ParameterStorage

ParameterValues()
Signature: unit -> Tensor<'T>

numeric flat parameter vector

CompiledName: set_ParameterValues

ParameterValues()
Signature: unit -> unit

numeric flat parameter vector

CompiledName: get_ParameterValues

ParameterVector
Signature: ExprT

symbolic flat parameter vector

CompiledName: get_ParameterVector

SavePars(hdf, prefix)
Signature: (hdf:HDF5 * prefix:string option) -> unit

Save parameter values.

SetLoc(var loc)
Signature: var:ExprT -> loc:ITensorDevice -> unit

sets the location of the given variable

SetStride(var stride)
Signature: var:ExprT -> (stride:int64 list) -> unit

sets the stride of the given variable

Use(varEnv)
Signature: varEnv:VarEnvT -> VarEnvT

inserts the ParameterStorage into the given variable environment

Use(expr)
Signature: expr:ExprT -> ExprT

substitutes the ParameterStorage into the given expression

Fork me on GitHub