MLService
A service that runs in-engine machine learning inference by loading model bundles and creating inference sessions.
This class is not replicated. Its interface does not cross the network boundary.
This class is not creatable. Instances of this class cannot be created with Instance.new.
This class is a service. It is a singleton that may be acquired with GetService.
| Memory category | Instances |
|---|
Member index 4
Removed member index 2
| History | Member | |
|---|---|---|
| 731 | GetNPCInferenceSpecAsync(server: string, port: int): Dictionary | |
| 731 | RunNPCInferenceAsync(server: string, port: int, features: Dictionary): Dictionary |
Description
History 9
Members 4
CreateSessionAsync
| Parameters (1) | ||
|---|---|---|
| assetId | string | |
| Returns (1) | ||
| MLSession | ||
Fetches the model bundle identified by assetId, constructs a neural
network session from it, and resolves with a MLSession wrapping
that session. As a yield function, it returns only once the model has been
downloaded and the session created; if the asset cannot be fetched or the
bundle is invalid, it raises an error instead of returning a session.
This function yields. It will block the calling thread until completion.
| Thread safety | Unsafe |
|---|
History 1
IsPostProcessReady
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Returns (1) | ||
| bool | ||
| Thread safety | Unsafe |
|---|
History 1
LoadPostProcessModelAsync
| Parameters (1) | ||
|---|---|---|
| assetId | int64 | |
| Returns (1) | ||
| null | ||
This function yields. It will block the calling thread until completion.
| Thread safety | Unsafe |
|---|
History 1
SetPostProcessEnabled
| Parameters (1) | ||
|---|---|---|
| enabled | bool | |
| Returns (1) | ||
| null | ||
| Thread safety | Unsafe |
|---|
History 1
Removed members 2
GetNPCInferenceSpecAsync
| Parameters (2) | ||
|---|---|---|
| server | string | |
| port | int | |
| Returns (1) | ||
| Dictionary | ||
This function yields. It will block the calling thread until completion.
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 2
RunNPCInferenceAsync
| Parameters (3) | ||
|---|---|---|
| server | string | |
| port | int | |
| features | Dictionary | |
| Returns (1) | ||
| Dictionary | ||
This function yields. It will block the calling thread until completion.
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 2
- 731 Remove RunNPCInferenceAsync
- 725 Add RunNPCInferenceAsync