Preparing search index...
The search index is not available
react-native-transformers
react-native-transformers
Base
Class Base
Hierarchy (
view full
)
Base
TextGeneration
TextEmbedding
Index
Constructors
constructor
Properties
eos
feed
sess?
Methods
argmax
initialize
Feed
load
release
updateKVCache
Constructors
constructor
new
Base
(
)
:
Base
Returns
Base
Properties
Protected
eos
eos
:
bigint
= 2n
Protected
feed
feed
:
Record
<
string
,
Tensor
>
= {}
Protected
Optional
sess
sess
?:
InferenceSession
Methods
Protected
argmax
argmax
(
t
)
:
number
Parameters
t
:
Tensor
Returns
number
initialize
Feed
initialize
Feed
(
)
:
void
Returns
void
load
load
(
model
,
onnx_file
?
,
options
)
:
Promise
<
void
>
Parameters
model
:
string
onnx_file
:
string
= "onnx/model.onnx"
options
:
LoadOptions
Returns
Promise
<
void
>
release
release
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Protected
updateKVCache
updateKVCache
(
feed
,
outputs
)
:
void
Parameters
feed
:
Record
<
string
,
Tensor
>
outputs
:
OnnxValueMapType
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
eos
feed
sess
Methods
argmax
initialize
Feed
load
release
updateKVCache
react-native-transformers
Loading...