|
def | __init__ (self, init_params=True) |
|
def | AddParam (self, name, init=None, init_value=None, trainable=True) |
|
Definition at line 14 of file seq2seq_util.py.
◆ AddParam()
def seq2seq_util.ModelHelper.AddParam |
( |
|
self, |
|
|
|
name, |
|
|
|
init = None , |
|
|
|
init_value = None , |
|
|
|
trainable = True |
|
) |
| |
Adds a parameter to the model's net and it's initializer if needed
Args:
init: a tuple (<initialization_op_name>, <initialization_op_kwargs>)
init_value: int, float or str. Can be used instead of `init` as a
simple constant initializer
trainable: bool, whether to compute gradient for this param or not
Definition at line 23 of file seq2seq_util.py.
The documentation for this class was generated from the following file: