e74a37438b5389ae19eb61b431859f9789100874,keras/backend/tensorflow_backend.py,,function,#Any#Any#Any#,2272
Before Change
Output values as Numpy arrays.
if kwargs:
msg = [
"Expected no kwargs, you passed %s" % len(kwargs),
"kwargs passed to function are ignored with Tensorflow backend"
]
warnings.warn("\n".join(msg))
return Function(inputs, outputs, updates=updates)
After Change
ValueError: if invalid kwargs are passed in.
if kwargs:
for key in kwargs.keys():
if (key not in inspect.getargspec(tf.Session.run)[0] and
key not in inspect.getargspec(Function.__init__)[0]):
msg = "Invalid argument "%s" passed to K.function with Tensorflow backend" % key
raise ValueError(msg)
return Function(inputs, outputs, updates=updates, **kwargs)
def gradients(loss, variables):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: keras-team/keras
Commit Name: e74a37438b5389ae19eb61b431859f9789100874
Time: 2017-05-22
Author: ajoseph.lobo@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: function
Project Name: ray-project/ray
Commit Name: e968b52cb7de4e6c2fcc6e7d5ccb98d984745715
Time: 2020-08-21
Author: sven@anyscale.io
File Name: rllib/policy/torch_policy.py
Class Name: TorchPolicy
Method Name: compute_actions_from_input_dict
Project Name: deepmipt/DeepPavlov
Commit Name: 6c91204831b4c7628ed6b0975b26df039f866c2c
Time: 2018-01-18
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/classifiers/intents/intent_model.py
Class Name: KerasIntentModel
Method Name: __init__