Model

Attribute-driven model state discovery. Records use field names; options are transparent; tuples and stable lists use zero-based indices; union values use CaseName.index; and string dictionaries use ordinally sorted keys. Supported containers are records, options, tuples, discriminated unions, arrays, F# lists, ResizeArray/IList/IReadOnlyList, and string-keyed dictionaries.

FunctionDescription
state modelDiscover model state through attributes and supported F# containers. A shared Tensor is
represented once, under the first path at which it is discovered.
stateWith descriptor modelBuild model state from an explicit descriptor without inspecting the model structure.

state

state model

Discover model state through attributes and supported F# containers. A shared Tensor is represented once, under the first path at which it is discovered.

Parameters

  • model : 'Model

Returns ModelState


stateWith

stateWith descriptor model

Build model state from an explicit descriptor without inspecting the model structure.

Parameters

  • descriptor : ModelDescriptor<'Model>
  • model : 'Model

Returns ModelState