Preparing search index...
The search index is not available
tvmjs
tvmjs
RPCServer
Class RPCServer
A websocket based RPC
Hierarchy
RPCServer
Index
Constructors
constructor
Properties
get
Imports
key
logger
socket
state
url
Constructors
constructor
new RPCServer
(
url
,
key
,
getImports
,
logger
?
,
ndarrayCacheUrl
?
,
ndarrayCacheDevice
?
,
initProgressCallback
?
,
asyncOnServerLoad
?
)
:
RPCServer
Parameters
url
:
string
key
:
string
getImports
:
(
(
)
=>
Record
<
string
,
unknown
>
)
(
)
:
Record
<
string
,
unknown
>
Returns
Record
<
string
,
unknown
>
logger
:
(
(
msg
)
=>
void
)
= console.log
(
msg
)
:
void
Parameters
msg
:
string
Returns
void
ndarrayCacheUrl
:
string
= ""
ndarrayCacheDevice
:
string
= "cpu"
initProgressCallback
:
InitProgressCallback
= undefined
asyncOnServerLoad
:
(
(
inst
)
=>
Promise
<
void
>
)
= undefined
(
inst
)
:
Promise
<
void
>
Parameters
inst
:
Instance
Returns
Promise
<
void
>
Returns
RPCServer
Properties
get
Imports
get
Imports
:
(
(
)
=>
Record
<
string
,
unknown
>
)
Type declaration
(
)
:
Record
<
string
,
unknown
>
Returns
Record
<
string
,
unknown
>
key
key
:
string
logger
logger
:
(
(
msg
)
=>
void
)
Type declaration
(
msg
)
:
void
Parameters
msg
:
string
Returns
void
socket
socket
:
WebSocket
state
state
:
RPCServerState
= RPCServerState.InitHeader
url
url
:
string
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
get
Imports
key
logger
socket
state
url
tvmjs
<internal>
Asyncify
State
Kind
RPCServer
State
Asyncify
Handler
Cached
Call
Stack
Canvas
Render
Manager
Environment
FFILibrary
Memory
Packed
Func
Cell
Runtime
Context
TVMString
WebGPUContext
Function
Info
NDArray
Cache
Entry
NDArray
Shard
Entry
Async
Packed
Func
FObject
Constructor
FTVMWasm
Alloc
Space
FTVMWasm
Free
Space
FTVMWasm
PackedCFunc
Pointer
TVMObject
Base
Artifact
Cache
Artifact
IndexedDBCache
DLData
Type
DLDevice
Instance
Linear
Congruential
Generator
Module
NDArray
RPCServer
Scalar
TVMArray
TVMObject
Virtual
Machine
Artifact
Cache
Template
Disposable
GPUDevice
Detect
Output
Init
Progress
Report
Library
Provider
Init
Progress
Callback
Packed
Func
assert
create
PolyfillWASI
deleteNDArray
Cache
detectGPUDevice
hasNDArray
In
Cache
instantiate
wasm
Path
Generated using
TypeDoc
A websocket based RPC