2c7d7120ab89fb7e69725ebc3c5eca3891b6fecb,tensorforce/core/optimizers/tf_optimizer.py,TFOptimizer,get_variables,#TFOptimizer#Any#Any#,135
Before Change
variables = super().get_variables(only_trainable=only_trainable, only_saved=only_saved)
if not only_trainable:
variables.extend(self.optimizer.variables())
return variables
After Change
for variable in self.optimizer.weights:
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:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: reinforceio/tensorforce
Commit Name: 2c7d7120ab89fb7e69725ebc3c5eca3891b6fecb
Time: 2019-11-29
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/optimizers/tf_optimizer.py
Class Name: TFOptimizer
Method Name: get_variables
Project Name: reinforceio/tensorforce
Commit Name: 2c7d7120ab89fb7e69725ebc3c5eca3891b6fecb
Time: 2019-11-29
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/optimizers/tf_optimizer.py
Class Name: TFOptimizer
Method Name: get_variables
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: aec6216f3d6540baaa5b0bb9badca5a00f84b74d
Time: 2020-08-10
Author: yuyanting@google.com
File Name: perfkitbenchmarker/linux_packages/ycsb.py
Class Name: YCSBExecutor
Method Name: RunStaircaseLoads
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 5ae0222f369dd26cea76b6b027cf9d4bb6470783
Time: 2017-10-11
Author: ehankland@google.com
File Name: perfkitbenchmarker/linux_benchmarks/multichase_benchmark.py
Class Name:
Method Name: Run