73b21544b0feda16d2e8b69a1fe502aa387b8f89,tensorforce/core/optimizers/tf_optimizer.py,TFOptimizer,get_variables,#TFOptimizer#Any#Any#,125
Before Change
name_index = variable.name.rindex("/" + self.name + "/")
name = variable.name[name_index + len(self.name) + 2: -2]
if name in self.variables:
break
self.variables[name] = variable
for name, value in self.optimizer._hyper.items():
if isinstance(value, tf.Variable):
if name in self.variables:
After Change
assert variable.name.startswith("agent/") and \
variable.name.endswith("/ExponentialMovingAverage:0")
self.variables[variable.name[:-2]] = variable
if hasattr(optimizer, "_optimizer"):
optimizer = optimizer._optimizer
else:
break
variables = super().get_variables(only_trainable=only_trainable, only_saved=only_saved)
return variables
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: reinforceio/tensorforce
Commit Name: 73b21544b0feda16d2e8b69a1fe502aa387b8f89
Time: 2019-11-30
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/optimizers/tf_optimizer.py
Class Name: TFOptimizer
Method Name: get_variables
Project Name: rtavenar/tslearn
Commit Name: 46cb0b5b2cf2d836a2cf96be95d4e25a4004675e
Time: 2018-10-22
Author: guillaume.androz@gmail.com
File Name: tslearn/clustering.py
Class Name: KShape
Method Name: _fit_one_init
Project Name: farizrahman4u/recurrentshop
Commit Name: a982d348b6d0efcf607307a4fe757ed7380e9dc3
Time: 2017-05-07
Author: farizrahman4u@gmail.com
File Name: recurrentshop/engine.py
Class Name: RecurrentSequential
Method Name: build