c30223ec80213014c53a011aef4a1c5cc95b86d7,tf_agents/agents/sac/sac_agent_test.py,DummyCriticNet,call,#DummyCriticNet#Any#Any#Any#,91

Before Change



    states = tf.cast(tf.nest.flatten(observation)[0], tf.float32)
    // Biggest state is best state.
    value = tf.reduce_max(input_tensor=states, axis=-1)
    value = tf.reshape(value, [-1])

    // Biggest action is best action.
    q_value = tf.reduce_max(input_tensor=actions, axis=-1)
    q_value = tf.reshape(q_value, [-1])
    // Biggest state is best state.
    return value + q_value, ()


class SacAgentTest(test_utils.TestCase):

After Change


    a_value = self._action_layer(actions)
    // Biggest state is best state.
    q_value = tf.reshape(s_value + a_value, [-1])
    return q_value, network_state


class SacAgentTest(test_utils.TestCase):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/agents
Commit Name: c30223ec80213014c53a011aef4a1c5cc95b86d7
Time: 2020-03-30
Author: sguada@google.com
File Name: tf_agents/agents/sac/sac_agent_test.py
Class Name: DummyCriticNet
Method Name: call


Project Name: dpressel/mead-baseline
Commit Name: dfb93af0d6e3e3f6d498778f076131fba2172d7c
Time: 2019-09-25
Author: dpressel@gmail.com
File Name: python/baseline/tf/classify/model.py
Class Name: NBowMaxModel
Method Name: pool


Project Name: tensorflow/agents
Commit Name: 49d8d4708eff5db085b8a6d5ee7c08972019a1e0
Time: 2019-08-16
Author: wun@google.com
File Name: tf_agents/agents/dqn/dqn_agent.py
Class Name: DqnAgent
Method Name: _compute_next_q_values