react-native-transformers
Preparing search index...
Base
Class Base
Hierarchy (
View Summary
)
Base
TextGeneration
Index
Constructors
constructor
Properties
eos
feed
sess?
Methods
argmax
initialize
Feed
load
release
update
KV
Cache
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
:
Tensor
)
:
number
Parameters
t
:
Tensor
Returns
number
initialize
Feed
initializeFeed
()
:
void
Returns
void
load
load
(
model
:
string
,
onnx_file
?:
string
,
options
:
LoadOptions
)
:
Promise
<
void
>
Parameters
model
:
string
onnx_file
:
string
= 'onnx/model.onnx'
options
:
LoadOptions
Returns
Promise
<
void
>
release
release
()
:
Promise
<
void
>
Returns
Promise
<
void
>
Protected
update
KV
Cache
updateKVCache
(
feed
:
Record
<
string
,
Tensor
>
,
outputs
:
OnnxValueMapType
)
:
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
update
KV
Cache
react-native-transformers
Loading...