9dd24d688e9bfacca2e7980abecadb8bba05844c,thinc/describe.py,Weights,__get__,#Weights#Any#Any#,32
Before Change
if key in obj.mem:
return obj.mem[key]
else:
shape = tuple(getattr(obj, dim, None) for dim in self.shape)
if any(dim is None for dim in shape):
return None
else:
data = obj.mem.add(key, shape)
After Change
if key in obj.mem:
return obj.mem[key]
else:
shape = self.get_shape(obj)
if any(dim is None for dim in shape):
return None
else:
data = obj.mem.add(key, shape)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: explosion/thinc
Commit Name: 9dd24d688e9bfacca2e7980abecadb8bba05844c
Time: 2017-01-13
Author: honnibal+gh@gmail.com
File Name: thinc/describe.py
Class Name: Weights
Method Name: __get__
Project Name: HyperGAN/HyperGAN
Commit Name: a02527e58d09b7f86575f5b790db1fa9dbc8e4e6
Time: 2016-10-29
Author: martyn@255bits.com
File Name: lib/gan.py
Class Name:
Method Name: discriminator
Project Name: reinforceio/tensorforce
Commit Name: 62cea7fcfcc9e20b784e08bddce5dc69b9578ef4
Time: 2019-01-05
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/memories/replay.py
Class Name: Replay
Method Name: tf_retrieve_episodes