Deep.Net


ParameterStorageT<'T>

Namespace: SymTensor
Parent Module: ModelContextTypes

Actual values for variables in a ParameterSet.

Constructors

ConstructorDescription
new(parameterSet, symSizes, device)
Signature: (parameterSet:ParameterSetT<'T> * symSizes:SymSizeEnvT * device:IDevice) -> ParameterStorageT<'T>

CompiledName: .ctor

Instance members

Instance memberDescription
Flat()
Signature: unit -> Tensor<'T>

flat array containing all parameters

CompiledName: set_Flat

Flat()
Signature: unit -> unit

flat array containing all parameters

CompiledName: get_Flat

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

value for a given parameter

CompiledName: set_Item

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

value for a given parameter

CompiledName: set_Item

[()]
Signature: unit -> VarSpecT

value for a given parameter

CompiledName: get_Item

[()]
Signature: unit -> ExprT

value for a given parameter

CompiledName: get_Item

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

Loads the parameter values from a previously saved HDF5 file using the specified prefix.

PrintShapes()
Signature: unit -> unit

prints the shapes of all parameters contained in this ParameterStorage

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

Saves the parameter values to a HDF5 file. Each parameter is stored in a separate HDF5 record under its name using the specified prefixed.

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

Uses the values of this ParameterStorageT for the the corresponding ParameterSetT in the given variable environment.

Fork me on GitHub