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
Relu
Class Relu
Rectified linear unit, calculates y = max(x,0)
Hierarchy
Module
Relu
Index
Constructors
constructor
Properties
backend
mode
Methods
forward
get
Parameters
get
Sub
Modules
to
Backend
toCPU
toGPU
toWASM
Constructors
constructor
new
Relu
(
)
:
Relu
Returns
Relu
Properties
backend
backend
:
Backend
= 'CPU'
mode
mode
:
Mode
= 'train'
Methods
forward
forward
(
inputs
:
Tensor
<
any
>
[]
)
:
Promise
<
Tensor
<
any
>
[]
>
Parameters
inputs:
Tensor
<
any
>
[]
Returns
Promise
<
Tensor
<
any
>
[]
>
get
Parameters
get
Parameters
(
)
:
Variable
<
any
>
[]
Returns
Variable
<
any
>
[]
get
Sub
Modules
get
Sub
Modules
(
)
:
Module
[]
Returns
Module
[]
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
Relu
constructor
backend
mode
forward
get
Parameters
get
Sub
Modules
to
Backend
toCPU
toGPU
toWASM
Sequential
Generated using
TypeDoc
Rectified linear unit, calculates y = max(x,0)