ONE - On-device Neural Engine
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
w
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
i
k
l
m
n
o
p
q
r
s
t
u
Enumerator
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
u
v
w
y
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerations
a
c
d
e
f
g
i
k
l
m
o
p
r
s
t
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Related Symbols
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Variables
_
b
c
d
f
g
i
k
m
n
o
p
s
t
v
Typedefs
a
d
f
g
i
l
m
n
o
s
t
u
v
Enumerations
f
g
n
o
p
r
Enumerator
a
k
n
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
adam.py
Go to the documentation of this file.
1
from
.optimizer
import
Optimizer
2
3
4
class
Adam
(
Optimizer
):
5
"""
6
Adam optimizer.
7
"""
8
def
__init__
(self, learning_rate=0.001, beta1=0.9, beta2=0.999, epsilon=1e-7):
9
"""
10
Initialize the Adam optimizer.
11
Args:
12
learning_rate (float): The learning rate for optimization.
13
beta1 (float): Exponential decay rate for the first moment estimates.
14
beta2 (float): Exponential decay rate for the second moment estimates.
15
epsilon (float): Small constant to prevent division by zero.
16
"""
17
super().
__init__
(learning_rate)
18
self.
beta1
= beta1
19
self.
beta2
= beta2
20
self.
epsilon
= epsilon
8
def
__init__
(self, learning_rate=0.001, beta1=0.9, beta2=0.999, epsilon=1e-7):
…
4
class
Adam
(
Optimizer
):
…
optimizer.adam.Adam
Definition
adam.py:4
optimizer.adam.Adam.beta1
beta1
Definition
adam.py:18
optimizer.adam.Adam.__init__
__init__(self, learning_rate=0.001, beta1=0.9, beta2=0.999, epsilon=1e-7)
Definition
adam.py:8
optimizer.adam.Adam.epsilon
epsilon
Definition
adam.py:20
optimizer.adam.Adam.beta2
beta2
Definition
adam.py:19
optimizer.optimizer.Optimizer
Definition
optimizer.py:4
runtime
onert
api
python
package
experimental
train
optimizer
adam.py
Generated by
1.9.8