68f4ddcc283e10b9f0e841fbe890852ef1662c00,tf_agents/agents/categorical_dqn/categorical_dqn_agent.py,CategoricalDqnAgent,_loss,#CategoricalDqnAgent#Any#Any#Any#Any#Any#Any#,236

Before Change


    self._check_trajectory_dimensions(experience)

    if self._n_step_update == 1:
      time_steps, actions, next_time_steps = self._experience_to_transitions(
          experience)
    else:
      // To compute n-step returns, we need the first time steps, the first
      // actions, and the last time steps. Therefore we extract the first and
      // last transitions from our Trajectory.

After Change


    // method requires a time dimension to compute the loss properly.
    self._check_trajectory_dimensions(experience)

    squeeze_time_dim = not self._q_network.state_spec
    if self._n_step_update == 1:
      time_steps, policy_steps, next_time_steps = (
          trajectory.experience_to_transitions(experience, squeeze_time_dim))
      actions = policy_steps.action
    else:
      // To compute n-step returns, we need the first time steps, the first
      // actions, and the last time steps. Therefore we extract the first and
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 7

Instances


Project Name: tensorflow/agents
Commit Name: 68f4ddcc283e10b9f0e841fbe890852ef1662c00
Time: 2020-02-13
Author: no-reply@google.com
File Name: tf_agents/agents/categorical_dqn/categorical_dqn_agent.py
Class Name: CategoricalDqnAgent
Method Name: _loss


Project Name: tensorflow/agents
Commit Name: 68f4ddcc283e10b9f0e841fbe890852ef1662c00
Time: 2020-02-13
Author: no-reply@google.com
File Name: tf_agents/agents/td3/td3_agent.py
Class Name: Td3Agent
Method Name: _train


Project Name: tensorflow/agents
Commit Name: 68f4ddcc283e10b9f0e841fbe890852ef1662c00
Time: 2020-02-13
Author: no-reply@google.com
File Name: tf_agents/agents/dqn/dqn_agent.py
Class Name: DqnAgent
Method Name: _loss


Project Name: tensorflow/agents
Commit Name: 68f4ddcc283e10b9f0e841fbe890852ef1662c00
Time: 2020-02-13
Author: no-reply@google.com
File Name: tf_agents/agents/sac/sac_agent.py
Class Name: SacAgent
Method Name: _train


Project Name: tensorflow/agents
Commit Name: 68f4ddcc283e10b9f0e841fbe890852ef1662c00
Time: 2020-02-13
Author: no-reply@google.com
File Name: tf_agents/agents/ddpg/ddpg_agent.py
Class Name: DdpgAgent
Method Name: _train