ONE - On-device Neural Engine
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
optimizer.py
Go to the documentation of this file.
1from onert.native.libnnfw_api_pybind import trainable_ops
2
3
5 """
6 Base class for optimizers.
7 """
8 def __init__(self, learning_rate=0.001, nums_trainable_ops=trainable_ops.ALL):
9 """
10 Initialize the optimizer.
11 Args:
12 learning_rate (float): The learning rate for optimization.
13 """
14 self.learning_rate = learning_rate
15 self.nums_trainable_ops = nums_trainable_ops
__init__(self, learning_rate=0.001, nums_trainable_ops=trainable_ops.ALL)
Definition optimizer.py:8