619ea0944e1f652a426045038ee2977996733758,rl_coach/architectures/tensorflow_components/savers.py,GlobalVariableSaver,restore,#GlobalVariableSaver#Any#Any#,54

Before Change


            new_name = var_name.replace("global/", "online/")
            variables[new_name] = reader.get_tensor(var_name)
        // Assign all variables
        sess.run([v.assign(variables[v.name.split(":")[0]]) for v in self._variables])

    def merge(self, other: "Saver"):
        

After Change


            variables[new_name] = reader.get_tensor(var_name)

        // Assign all variables using placeholder
        for i in range(len(self._variables)):
            variable_name = self._variables[i].name.split(":")[0]
            sess.run(self._variable_update_ops[i], {self._variable_placeholders[i]: variables[variable_name]})
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NervanaSystems/coach
Commit Name: 619ea0944e1f652a426045038ee2977996733758
Time: 2019-01-02
Author: gouravr@amazon.com
File Name: rl_coach/architectures/tensorflow_components/savers.py
Class Name: GlobalVariableSaver
Method Name: restore


Project Name: streamlit/streamlit
Commit Name: 3e96b208fe5bc38223eb453b68a03dae51a33544
Time: 2018-10-22
Author: thiagot@gmail.com
File Name: lib/streamlit/caseconverters.py
Class Name:
Method Name: to_lower_camel_case


Project Name: NifTK/NiftyNet
Commit Name: 306796bfe38c20f4189e841c358cbd2cfb74ca6a
Time: 2017-04-03
Author: l.fidon@ucl.ac.uk
File Name: util.py
Class Name:
Method Name: list_modality