f0369909d0c5cc5c9cccbcf98b09c16fadea5457,examples/deep_dream.py,,,#,119
Before Change
grads = K.gradients(loss, dream)
outputs = [loss]
if type(grads) in {list, tuple}:
outputs += grads
else:
outputs.append(grads)
After Change
grads = K.gradients(loss, dream)
outputs = [loss]
if isinstance(grads, (list, tuple)):
outputs += grads
else:
outputs.append(grads)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 13
Instances
Project Name: keras-team/keras
Commit Name: f0369909d0c5cc5c9cccbcf98b09c16fadea5457
Time: 2017-01-08
Author: pandevirus@gmail.com
File Name: examples/deep_dream.py
Class Name:
Method Name:
Project Name: keras-team/keras
Commit Name: f0369909d0c5cc5c9cccbcf98b09c16fadea5457
Time: 2017-01-08
Author: pandevirus@gmail.com
File Name: examples/neural_doodle.py
Class Name:
Method Name:
Project Name: keras-team/keras
Commit Name: f0369909d0c5cc5c9cccbcf98b09c16fadea5457
Time: 2017-01-08
Author: pandevirus@gmail.com
File Name: examples/neural_style_transfer.py
Class Name:
Method Name: