Search
Preparing search index...
The search index is not available
@hoff97/tensor-js
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@hoff97/tensor-js
model
basic
ModuleList
Class ModuleList
List of modules. Use this if you want to store submodules in a list
Hierarchy
Module
ModuleList
Index
Constructors
constructor
Properties
backend
mode
modules
Methods
forward
get
get
Parameters
get
Sub
Modules
pop
push
set
to
Backend
toCPU
toGPU
toWASM
Constructors
constructor
new
Module
List
(
modules
?:
Module
[]
)
:
ModuleList
Parameters
modules:
Module
[]
= ...
Returns
ModuleList
Properties
backend
backend
:
Backend
= 'CPU'
mode
mode
:
Mode
= 'train'
modules
modules
:
Module
[]
= ...
Methods
forward
forward
(
inputs
:
Tensor
<
any
>
[]
)
:
Promise
<
Tensor
<
any
>
[]
>
Parameters
inputs:
Tensor
<
any
>
[]
Returns
Promise
<
Tensor
<
any
>
[]
>
get
get
(
index
:
number
)
:
Module
Parameters
index:
number
Returns
Module
get
Parameters
get
Parameters
(
)
:
Variable
<
any
>
[]
Returns
Variable
<
any
>
[]
get
Sub
Modules
get
Sub
Modules
(
)
:
Module
[]
Returns
Module
[]
pop
pop
(
)
:
undefined
|
Module
Returns
undefined
|
Module
push
push
(
module
:
Module
)
:
void
Parameters
module:
Module
Returns
void
set
set
(
index
:
number
, module
:
Module
)
:
void
Parameters
index:
number
module:
Module
Returns
void
to
Backend
to
Backend
(
backend
:
Backend
)
:
Promise
<
void
>
Parameters
backend:
Backend
Returns
Promise
<
void
>
toCPU
toCPU
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
toGPU
toGPU
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
toWASM
toWASM
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Exports
autograd
model
basic
functional
optimizer
regularization
onnx
tensor
util
Linear
Module
Dict
Module
List
constructor
backend
mode
modules
forward
get
get
Parameters
get
Sub
Modules
pop
push
set
to
Backend
toCPU
toGPU
toWASM
Relu
Sequential
Generated using
TypeDoc
List of modules. Use this if you want to store submodules in a list