Skip to content
Roblox API Reference

MLSession

A machine-learning inference session that wraps a single loaded model and runs it through MLSession:ForwardAsync().
  • Not creatable
  • Not replicated
Memory category
Instances
Own members
1
Inherited members
6
Subclasses
0
Siblings
30

Properties2

Inherited fromObject2

Property categoryData

Methods4

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Defined byMLSession1
  • MLSession:ForwardAsync(data: { [string]: any }): { [string]: any }
    Runs the session's model on the given input and asynchronously returns the model's output.
    • Yields
    • Capabilities: Basic
    Parameters
    ParameterDescription
    data: { [string]: any }
    A dictionary mapping each of the model's input names to that input's tensor, given as a nested array of numbers matching the input's shape.
    Returns
    TypeDescription
    { [string]: any }
    A dictionary mapping each of the model's output names to that output's tensor, given as a nested array of numbers matching the output's shape.

Events1

Inherited fromObject1