jax-js
System
Light
Dark
Search…
Preparing search index...
@jax-js/jax
nn
sparsePlus
Function sparsePlus
sparsePlus
(
...
args
:
[
x
:
ArrayLike
]
)
:
Array
Sparse plus function:
When
x <= -1
:
0
When
-1 < x < 1
:
(x+1)**2 / 4
When
x >= 1
:
x
Parameters
...
args
:
[
x
:
ArrayLike
]
Returns
Array
Properties
dispose
dispose
:
()
=>
void
Properties
dispose
jax-js
Loading...
Sparse plus function:
x <= -1:0-1 < x < 1:(x+1)**2 / 4x >= 1:x