6d6f8612a0b12636269e3837c6bb27d2ff94e9d3,softlearning/samplers/remote_sampler.py,RemoteSampler,__getstate__,#RemoteSampler#,80
Before Change
def __getstate__(self):
state = self.__dict__.copy()
del state["_remote_environment"]
del state["_remote_path"]
return state
After Change
return diagnostics
def __getstate__(self):
super_state = super(RemoteSampler, self).__getstate__()
state = {
key: value for key, value in super_state
if key not in ("_remote_environment", "_remote_path")
}
return state
def __setstate__(self, state):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: rail-berkeley/softlearning
Commit Name: 6d6f8612a0b12636269e3837c6bb27d2ff94e9d3
Time: 2019-01-10
Author: henryee333@gmail.com
File Name: softlearning/samplers/remote_sampler.py
Class Name: RemoteSampler
Method Name: __getstate__
Project Name: senarvi/theanolm
Commit Name: f44453ae06692386220594a9a933bc2a07d79f01
Time: 2015-09-18
Author: seppo.git@marjaniemi.com
File Name: theanolm/src/rnnlm.py
Class Name: RNNLM
Method Name: __init__
Project Name: pytorch/examples
Commit Name: fcaf4c22bafc28d7ff0a31cd18a75f81737892c6
Time: 2017-03-14
Author: bryan.mccann.is@gmail.com
File Name: OpenNMT/train.py
Class Name:
Method Name: main
Project Name: arnomoonens/yarll
Commit Name: 374b789e734c3c0928f38d1054c8919346cb9860
Time: 2019-03-22
Author: arno.moonens@gmail.com
File Name: yarll/agents/ppo/ppo.py
Class Name: PPO
Method Name: __init__